Liking cljdoc? Tell your friends :D

somekit.geometry.line


anglecljs

(angle line)

Returns the angle of a line

Returns the angle of a line
sourceraw docstring

angle-betweencljs

(angle-between line1 line2)

Calculates the angle between two lines via difference.

Calculates the angle between two lines via difference.
sourceraw docstring

atcljs

(at line t)

Returns point at a value between 0-1 of a line, 0 being the start and 1 being the end.

Returns point at a value between 0-1 of a line, 0 being the start
and 1 being the end.
sourceraw docstring

directioncljs

(direction line)

Returns the direction of a line as a unit vector

Returns the direction of a line as a unit vector
sourceraw docstring

extrude-pointcljs

(extrude-point point length angle)

Creates a line from centerpoint with the resulting length and angle.

Creates a line from centerpoint with the resulting length and angle.
sourceraw docstring

lengthcljs

(length line)

Calculates the length of a line

Calculates the length of a line
sourceraw docstring

line-intersectioncljs

(line-intersection line1 line2)

Returns a vector with two items. The first is the intersection between two lines. The second is a boolean of whether the intersection occurs on the line segments.

Returns a vector with two items. The first is the intersection
between two lines. The second is a boolean of whether the
intersection occurs on the line segments.
sourceraw docstring

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

× close