Liking cljdoc? Tell your friends :D

artlib.geometry.jts


->Coordinateclj

(->Coordinate elements)
(->Coordinate x y)
(->Coordinate x y z)

Converts the paremeters to a Coordinate. Calling with a single argument treats the value as a vector. Calling with two or more treats the arguments as elements.

Converts the paremeters to a Coordinate. Calling with a single argument
treats the value as a vector. Calling with two or more treats the
arguments as elements.
sourceraw docstring

->Pointclj

(->Point elements)
(->Point x y)
(->Point x y z)

Converts the paremeters to a Coordinate. Calling with a single argument treats the value as a vector. Calling with two or more treats the arguments as elements.

Converts the paremeters to a Coordinate. Calling with a single argument
treats the value as a vector. Calling with two or more treats the
arguments as elements.
sourceraw docstring

->Polygonclj

(->Polygon points)

Convert the supplied points to a Polygon, potentially closing the original points. A 'closed' Polygon has the same first and last point.

Convert the supplied points to a Polygon, potentially closing
the original points. A 'closed' Polygon has the same first and
last point.
sourceraw docstring

areaclj

(area points)

Compute the area of the supplied polygon.

Compute the area of the supplied polygon.
sourceraw docstring

buffer-polyclj

(buffer-poly polygon amt)

Perform a polygon offsetting operation on the supplied seq of points. Returns an open shape if supplied, or closed shape if supplied.

Perform a polygon offsetting operation on the supplied seq of points.
Returns an open shape if supplied, or closed shape if supplied.
sourceraw docstring

calc-voronoiclj

(calc-voronoi points)

Computes the Voronoi diagram for the supplied set of points, returing a collection of polygons, each representing a cell of the diagram.

Computes the Voronoi diagram for the supplied set of points, returing
a collection of polygons, each representing a cell of the diagram.
sourceraw docstring

centroidclj

(centroid points)

Compute the centroid (center of mass) of the supplied polygon.

Compute the centroid (center of mass) of the supplied polygon.
sourceraw docstring

Coordinate->pointclj

(Coordinate->point coord)

Convert the Coordinate to a vec of its elements.

Convert the Coordinate to a vec of its elements.
sourceraw docstring

cut-segment-by-collectionclj

(cut-segment-by-collection seg col)

Same as cut-segment-by-segment, but the second argument is a collection of line segments, to be evaluated recursively against the seg.

Same as cut-segment-by-segment, but the second argument is a collection of line
segments, to be evaluated recursively against the seg.
sourceraw docstring

cut-segment-by-segmentclj

(cut-segment-by-segment a b)
(cut-segment-by-segment p1 p2 p3 p4)

Cuts the first line segment using the second line segment, if they intersect. Returns a list of line segments. When the line segments do not intersect, returns a list of the first line segment.

Cuts the first line segment using the second line segment, if they intersect.
Returns a list of line segments. When the line segments do not intersect, 
returns a list of the first line segment.
sourceraw docstring

Geometry->pointsclj

(Geometry->points geom)
(Geometry->points geom as)

Convert the supplied JTS Geometry to a point seq. The optional argument 'as' supports values of :open or :closed and will drop or keep the last point, respectively. The default is :closed. This is due to JTS Polygons always being closed.

Convert the supplied JTS Geometry to a point seq. The optional argument 'as'
supports values of :open or :closed and will drop or keep the last point,
respectively. The default is :closed. This is due to JTS Polygons always
being closed.
sourceraw docstring

line-segment-intersectionclj

(line-segment-intersection a b)
(line-segment-intersection p1 p2 p3 p4)

Computes the proper intersection of the two line segments. The lines are not projected past their range. Returns nil if they do not intersect or if they are colinear.

Computes the proper intersection of the two line segments. The lines are 
not projected past their range. Returns nil if they do not intersect or
if they are colinear.
sourceraw docstring

line-segments-intersect?clj

(line-segments-intersect? a b)
(line-segments-intersect? p1 p2 p3 p4)

Returns true if the two line segments intersect. The lines are not projected past their range.

Returns true if the two line segments intersect. The lines 
are not projected past their range.
sourceraw docstring

Point->pointclj

(Point->point point)

Convert the Point to a vec of its elements.

Convert the Point to a vec of its elements.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close