(->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.
(->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.
(->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.
(area points)
Compute the area of the supplied polygon.
Compute the area of the supplied polygon.
(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.
(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.
(centroid points)
Compute the centroid (center of mass) of the supplied polygon.
Compute the centroid (center of mass) of the supplied polygon.
(Coordinate->point coord)
Convert the Coordinate to a vec of its elements.
Convert the Coordinate to a vec of its elements.
(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.
(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.
(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.
(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.
(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.
(Point->point point)
Convert the Point to a vec of its elements.
Convert the Point to a vec of its elements.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close