Liking cljdoc? Tell your friends :D

frenet.core


distanceclj

(distance [x1 y1] [x2 y2])
source

guardrail-newtonclj

(guardrail-newton f x0 tolerance)
(guardrail-newton f x0 tolerance min-x max-x)

Version of Newton's method with guardrails to ensure convergence

Version of Newton's method with guardrails to ensure convergence
sourceraw docstring

s->dxy-ddclj

(s->dxy-dd track s)
source

s->dxy-dsclj

(s->dxy-ds track s)
source

s->xyclj

(s->xy track s)
source

sd->xyclj

(sd->xy track s d)
source

sdv->xyvclj

(sdv->xyv track s d vs vd)
source

trackclj

(track waypoints)

Construct a coordinate system around a track, based on a set of (x,y) waypoints along that track. Coordinates are (s,d) where s is distance along the track and d is distance to the right of the track. Internally, d by itself is part of (s,d) coordinates and dM-dN is a partial derivative of M with respect to N. Surprisingly, in the case of frenet coordinates, the following convenient partial derivative equalities hold: dx/ds = ds/dx = -dy/dd = -dd/dy dy/ds = ds/dy = dx/dd = dd/dx (dx/ds)^2 + (dy/ds)^2 = 1 (Such equalities are possible because partial derivatives are not fractions, despite what the notation suggests.) These equalities will be used heavily in this namespace. For example, after representing dx/ds and dy/ds with splines, there's no need to create separate splines for the other quantities that are easily derived from those two.

Construct a coordinate system around a track, based
on a set of (x,y) waypoints along that track.
Coordinates are (s,d) where s is distance along the
track and d is distance to the right of the track.
Internally, d by itself is part of (s,d) coordinates
and dM-dN is a partial derivative of M with respect
to N. Surprisingly, in the case of frenet coordinates,
the following convenient partial derivative equalities
hold:
  dx/ds = ds/dx = -dy/dd = -dd/dy
  dy/ds = ds/dy = dx/dd = dd/dx
  (dx/ds)^2 + (dy/ds)^2 = 1
(Such equalities are possible because partial derivatives
 are not fractions, despite what the notation suggests.)
These equalities will be used heavily in this namespace.
For example, after representing dx/ds and dy/ds with
splines, there's no need to create separate splines for
the other quantities that are easily derived from those
two.
sourceraw docstring

xy->sdclj

(xy->sd track x y)
source

xyv->sdvclj

(xyv->sdv track x y vx vy)
source

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

× close