Shapes 3D  3.0
 All Classes Functions Variables Pages
shapes3d.path.Path Interface Reference
Inheritance diagram for shapes3d.path.Path:

Public Member Functions

PVector point (float t)
 
PVector tangent (float t)
 
PVector orthogonal (float t)
 
int nbrSlices ()
 
boolean isOpenPath ()
 

Member Function Documentation

boolean shapes3d.path.Path.isOpenPath ( )

The path may or may not be open. For most paths this will always be false e.g. Spiral; for some it is always true e.g. Torus and for some it is a user option e.g. BSpline.

Returns
false if the path forms a closed loop, else true

Implemented in shapes3d.path.AbstractPath.

int shapes3d.path.Path.nbrSlices ( )
Returns
the number of slices to use in this path

Implemented in shapes3d.path.AbstractPath.

PVector shapes3d.path.Path.orthogonal ( float  t)

Get the best vector orthogonal to the path tangent.

Parameters
t≥0 and ≤1.0
Returns
a PVector giving the x,y,z coordinates of the tangent orthogonal at position t

Implemented in shapes3d.path.BCurve2D, shapes3d.path.Spiral, shapes3d.path.Linear, shapes3d.path.AbstractPath, and shapes3d.path.Ring.

PVector shapes3d.path.Path.point ( float  t)

Get the position along the path.

Parameters
t≥0 and ≤1.0
Returns
a PVector giving the x,y,z coordinates at a position t

Implemented in shapes3d.path.BCurve2D, shapes3d.path.BCurve3D, shapes3d.path.BSpline3D, shapes3d.path.BSpline2D, shapes3d.path.Lissajous, shapes3d.path.Spiral, shapes3d.path.AbstractPath, shapes3d.path.Linear, and shapes3d.path.Ring.

PVector shapes3d.path.Path.tangent ( float  t)

Get the normalised tangent to the path.

Parameters
t≥0 and ≤1.0
Returns
a PVector giving the x,y,z coordinates of the tangent at position t

Implemented in shapes3d.path.BCurve2D, shapes3d.path.BCurve3D, shapes3d.path.BSpline3D, shapes3d.path.BSpline2D, shapes3d.path.Spiral, shapes3d.path.Linear, shapes3d.path.AbstractPath, and shapes3d.path.Ring.


The documentation for this interface was generated from the following file: