(coordinate-system->basis coordinate-system)
Returns the standard basis object for coordinate-system
.
Returns the standard basis object for `coordinate-system`.
(Jacobian to-basis from-basis)
Returns the Jacobian of transition from from-basis
to to-basis
.
Returns the Jacobian of transition from `from-basis` to `to-basis`.
(let-coordinates bindings & body)
Example:
(let-coordinates [[x y] R2-rect
[r theta] R2-polar]
body...)
Example: ```clojure (let-coordinates [[x y] R2-rect [r theta] R2-polar] body...) ```
(quotify-coordinate-prototype xf p)
Scmutils wants to allow forms like this:
(using-coordinates (up x y) R2-rect ...)
Note that x
, y
are unquoted. This function converts such an unquoted for
into a quoted one that could be evaluated to return an up-tuple of the
symbols:
(up 'x 'y)
Such an object is useful for [[s/mapr]]. The function xf
is applied before
quoting.
Scmutils wants to allow forms like this: ```clojure (using-coordinates (up x y) R2-rect ...) ``` Note that `x`, `y` are unquoted. This function converts such an unquoted for into a quoted one that could be evaluated to return an up-tuple of the symbols: ```clojure (up 'x 'y) ``` Such an object is useful for [[s/mapr]]. The function `xf` is applied before quoting.
(using-coordinates coordinate-prototype coordinate-system & body)
Example:
(using-coordinates (up x y) R2-rect
body...)
Note: using-coordinates
is just a macro wrapping let-coordinates
.
Prefer let-coordinates
when possible.
Example: ```clojure (using-coordinates (up x y) R2-rect body...) ``` Note: [[using-coordinates]] is just a macro wrapping [[let-coordinates]]. Prefer [[let-coordinates]] when possible.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close