Geometry

Basic geometric primitives and operations.

License

License

Categories

Categories

Geo Business Logic Libraries Geospatial
GroupId

GroupId

hu.kazocsaba.math
ArtifactId

ArtifactId

geometry
Last Version

Last Version

1.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

Geometry
Basic geometric primitives and operations.
Project URL

Project URL

https://github.com/kazocsaba/geometry
Source Code Management

Source Code Management

https://github.com/kazocsaba/geometry.git

Download geometry

How to add to project

<!-- https://jarcasting.com/artifacts/hu.kazocsaba.math/geometry/ -->
<dependency>
    <groupId>hu.kazocsaba.math</groupId>
    <artifactId>geometry</artifactId>
    <version>1.1.2</version>
</dependency>
// https://jarcasting.com/artifacts/hu.kazocsaba.math/geometry/
implementation 'hu.kazocsaba.math:geometry:1.1.2'
// https://jarcasting.com/artifacts/hu.kazocsaba.math/geometry/
implementation ("hu.kazocsaba.math:geometry:1.1.2")
'hu.kazocsaba.math:geometry:jar:1.1.2'
<dependency org="hu.kazocsaba.math" name="geometry" rev="1.1.2">
  <artifact name="geometry" type="jar" />
</dependency>
@Grapes(
@Grab(group='hu.kazocsaba.math', module='geometry', version='1.1.2')
)
libraryDependencies += "hu.kazocsaba.math" % "geometry" % "1.1.2"
[hu.kazocsaba.math/geometry "1.1.2"]

Dependencies

compile (1)

Group / Artifact Type Version
hu.kazocsaba.math : matrix jar 1.1.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.4

Project Modules

There are no modules declared in this project.

Geometry library

This library provides simple geometric data structures and associated operations. All the data container classes are immutable.

This library depends on my matrix package.

Using

The library resides in the central Maven repository with group ID hu.kazocsaba.math and artifact ID geometry. If you use a project management system which can fetch dependencies from there, you can just add the library as a dependency. E.g. in Maven:

<dependency>
	<groupId>hu.kazocsaba.math</groupId>
	<artifactId>geometry</artifactId>
	<version>a.b.c</version>
</dependency>

You can also browse the online javadoc.

Features

Line in 2D and 3D space, represented as X(t)=P+t*D

  • distance of point from line, distance between two lines
  • rotation around 3D line
  • miscellaneous convenience query functions

Plane in 3D space

  • distance of point from plane
  • intersection with line and plane

Segment in 2D and 3D

  • perpendicular bisector line in 2D

Box in 2D

  • intersection with line (returns a segment)

Circle in 3D

Additional features are added as needed.

Versions

Version
1.1.2
1.1.1
1.1.0
1.0.0