Liking cljdoc? Tell your friends :D

quantus.coordinates


*clj

(* c)
(* c1 c2)
(* c1 c2 & more)

Return the element-wise product of one or more coordinates.

Return the element-wise product of one or more coordinates.
sourceraw docstring

+clj

(+ c)
(+ c1 c2)
(+ c1 c2 & more)

Return the sum of one or more coordinates.

Return the sum of one or more coordinates.
sourceraw docstring

-clj

(- c)
(- c1 c2)
(- c1 c2 & more)

If only one coordinate is supplied, return the negation of the coordinate. Otherwise all subsequent coordinates are subtracted from the first.

If only one coordinate is supplied, return the negation of the
coordinate. Otherwise all subsequent coordinates are subtracted from
the first.
sourceraw docstring

->mapclj

(->map c)
source

->xyclj

(->xy c)
source

->xyzclj

(->xyz c)
source

/clj

(/ c)
(/ c1 c2)
(/ c1 c2 & more)

If only one coordinate is supplied, return the element-wise reciprocal. Otherwise the first coordinate is divided element-wise by all other coordinates.

If only one coordinate is supplied, return the element-wise
reciprocal.  Otherwise the first coordinate is divided element-wise
by all other coordinates.
sourceraw docstring

anglecljmultimethod

Returns the bearing angle of a coordinateXY.

Returns the bearing angle of a coordinateXY.
sourceraw docstring

bearingcljmultimethod

Returns the bearing of a coordinateXY, measure clockwise from N.

Returns the bearing of a coordinateXY, measure clockwise from N.
sourceraw docstring

Coordinatecljprotocol

add*clj

(add* c1 c2)

Add two coordinates together.

Add two coordinates together.

div*clj

(div* c1 c2)

Divide one coordinate by another.

Divide one coordinate by another.

dotclj

(dot c1 c2)

Find the dot-product of two coordinates.

Find the dot-product of two coordinates.

magnitudeclj

(magnitude c)

The magnitude (length) of the coordinate.

The magnitude (length) of the coordinate.

mult*clj

(mult* c1 c2)

Multiply one coordinate by another.

Multiply one coordinate by another.

scaleclj

(scale c f)

Scale a coordinate by a factor.

Scale a coordinate by a factor.

sub*clj

(sub* c1 c2)

Subtract the second coordinate from the first.

Subtract the second coordinate from the first.
source

coordinateclj/s

(coordinate x y)
(coordinate x y z)

Create a new XY or XYZ coordinate.

Create a new XY or XYZ coordinate.
source (clj)source (cljs)raw docstring

CoordinateProtocolclj/sprotocol

xclj/s

(x this)

yclj/s

(y this)

zclj/s

(z this)
source (clj)source (cljs)

CoordinateXYcljs

source

CoordinateXYZcljs

source

crossclj

(cross c1 c2)

Find the cross-product of two 3D coordinates.

Find the cross-product of two 3D coordinates.
sourceraw docstring

cylindrical->xyzclj

(cylindrical->xyz magnitude angle z-component)
source

into-coordinateclj

(into-coordinate coll)
source

into-xyclj/s

(into-xy v)
source (clj)source (cljs)

into-xyzclj/s

(into-xyz v)
source (clj)source (cljs)

magnitudecljs

(magnitude c)
source

normalizeclj

(normalize c)

Normalize a coordinate by dividing by its magnitude.

Normalize a coordinate by dividing by its magnitude.
sourceraw docstring

polar->xyclj

(polar->xy magnitude angle)
source

xyclj/smultimethod

Create a coordinateXY

Create a coordinateXY
source (clj)source (cljs)raw docstring

xyzclj/smultimethod

Create a coordinateXYZ

Create a coordinateXYZ
source (clj)source (cljs)raw docstring

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

× close