Liking cljdoc? Tell your friends :D

quantus.geometry


circle-intersection-pointsclj/s

(circle-intersection-points x1 y1 r1 x2 y2 r2)

Calculates the intersection of two circles defined by their center point (x,y) and radius r. There are three possible outcomes: no-intersection because the centers of the circles are further apart than their radii. full-overlap because one circle is inside the other. Two (x,y) points of intersection, though they may be the same point in some cases.

Calculates the intersection of two circles defined by their center
point (x,y) and radius r.  There are three possible outcomes:
no-intersection because the centers of the circles are further apart
than their radii.
full-overlap because one circle is inside the other.
Two (x,y) points of intersection, though they may be the same point
in some cases.
sourceraw docstring

distance-to-angle-through-originclj/s

(distance-to-angle-through-origin x y theta)

Calculates the distance from a point (x,y) to a line through the origin at angle theta.

Calculates the distance from a point (x,y) to a line through the
origin at angle theta.
sourceraw docstring

distance-to-lineclj/s

(distance-to-line x y a b)
(distance-to-line x y a b c)

Calculates the distance from a point (x,y) to a line defined by: 0 = ax + by + c

Calculates the distance from a point (x,y) to a line defined by:
0 = a*x + b*y + c
sourceraw docstring

distance-to-line-2pointsclj/s

(distance-to-line-2points [x y] [x1 y1] [x2 y2])
(distance-to-line-2points x y x1 y1 x2 y2)

Calculates the distance from a point to a line passing through two other points.

Calculates the distance from a point to a line passing through two
other points.
sourceraw docstring

enclosing-obroundclj/s

(enclosing-obround points radius)
(enclosing-obround points radius direction)

Given a seqeunce of points, returns an enclosing obround. The obround will be at least radius from all the points. By default, the obround will be aligned with the line between the first and last points being enclosed. Obround: A shape consisting of two semicircles connected by parallel lines tangent to their endpoints.

Given a seqeunce of points, returns an enclosing obround.  The
obround will be at least `radius` from all the points.  By default,
the obround will be aligned with the line between the first and last
points being enclosed.
Obround: A shape consisting of two semicircles connected by parallel
lines tangent to their endpoints.
sourceraw docstring

line-intersectionclj/s

(line-intersection [x1 y1] [x2 y2] [x3 y3] [x4 y4])
(line-intersection x1 y1 x2 y2 x3 y3 x4 y4)

Given 4 points in 2D, calculates the point where a line through points 1 and 2 intersects with a line through points 3 and 4. Points are an x-y tuple. If the points don't intersect, then :no-intersection is returned.

Given 4 points in 2D, calculates the point where a line through
points 1 and 2 intersects with a line through points 3 and 4.
Points are an x-y tuple.  If the points don't intersect, then
`:no-intersection` is returned.
sourceraw docstring

line-segment-intersectionclj/s

(line-segment-intersection [x1 y1] [x2 y2] [x3 y3] [x4 y4])
(line-segment-intersection x1 y1 x2 y2 x3 y3 x4 y4)

Given 4 points in 2D, calculates the point where a line between points 1 and 2 intersects with a line between points 3 and 4. Points are an x-y tuple. If the lines don't intersect between the points (lines are not projected), then :no-intersection is returned.

Given 4 points in 2D, calculates the point where a line between
points 1 and 2 intersects with a line between points 3 and 4.
Points are an x-y tuple.  If the lines don't intersect between the
points (lines are not projected), then `:no-intersection` is
returned.
sourceraw docstring

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

× close