Constructor
new Plot()
- Source:
Extends
Members
dv :number
Nominal step-count for parametric curves and surfaces.
Type:
- Inherited From:
- Source:
Methods
color(color) → {this}
Parameters:
Name |
Type |
Description |
color |
string
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
this
curve(f, u) → {Array.<Geometry>}
Draw a parametric curve.
Parameters:
Name |
Type |
Description |
f |
function
|
parametric function |
u |
Array.<number>
|
parametric coordinate range |
- Inherited From:
- Source:
Returns:
-
Type
-
Array.<Geometry>
curvePlot(vertices) → {Array.<Geometry>}
Plot a curve (polyline) from a list of points.
Parameters:
Name |
Type |
Description |
vertices |
Array.<Array.<number>>
|
list of points on the curve. |
- Source:
Returns:
-
Type
-
Array.<Geometry>
dupe() → {this}
Get a new duplicate transformed Coords object.
- Inherited From:
- Source:
Returns:
-
Type
-
this
grey(valueopt) → {this}
Parameters:
Name |
Type |
Attributes |
Default |
Description |
value |
number
|
<optional>
|
0
|
grey value (0-100) |
- Inherited From:
- Source:
Returns:
-
Type
-
this
hue(hueopt) → {this}
Parameters:
Name |
Type |
Attributes |
Default |
Description |
hue |
number
|
<optional>
|
0
|
hue as degrees on a color wheel (0-360) |
- Inherited From:
- Source:
Returns:
-
Type
-
this
lightness(lightnessopt) → {this}
Parameters:
Name |
Type |
Attributes |
Default |
Description |
lightness |
number
|
<optional>
|
0
|
lightness percentage |
- Inherited From:
- Source:
Returns:
-
Type
-
this
listPlot(points) → {Array.<Geometry>}
Plot a list of points.
Parameters:
Name |
Type |
Description |
points |
Array.<Array.<number>>
|
list of points to be plotted. |
- Source:
Returns:
-
Type
-
Array.<Geometry>
opacity(opacity) → {this}
Parameters:
Name |
Type |
Description |
opacity |
number
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
this
orient(v) → {Array.<number>}
Apply current un-translated coordinate transform to vector v.
Parameters:
Name |
Type |
Description |
v |
Array.<number>
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
Array.<number>
point(vector) → {Array.<Geometry>}
Plot a single point.
Parameters:
Name |
Type |
Description |
vector |
Array.<number>
|
position of point to be plotted |
- Source:
Returns:
-
Type
-
Array.<Geometry>
quaternion(q) → {this}
Rotate by a quaternion
Parameters:
Name |
Type |
Description |
q |
Array.<number>
|
a quaternion |
- Inherited From:
- Source:
Returns:
-
Type
-
this
- Inherited From:
- Source:
Returns:
-
Type
-
this
rotate(angleopt, axisopt) → {this}
Parameters:
Name |
Type |
Attributes |
Default |
Description |
angle |
number
|
<optional>
|
0
|
|
axis |
number
|
Array.<number>
|
<optional>
|
0
|
either an axis index (0, 1, 2) or an axis vector |
- Inherited From:
- Source:
Returns:
-
Type
-
this
rotateTo(srcAxis, dstAxis)
Rotate so that srcAxis goes into dstAxis.
Parameters:
Name |
Type |
Description |
srcAxis |
Array.<number>
|
|
dstAxis |
Array.<number>
|
|
- Inherited From:
- Source:
saturation(saturationopt) → {this}
Parameters:
Name |
Type |
Attributes |
Default |
Description |
saturation |
number
|
<optional>
|
0
|
saturation percentage |
- Inherited From:
- Source:
Returns:
-
Type
-
this
scale(sopt) → {this}
Parameters:
Name |
Type |
Attributes |
Default |
Description |
s |
number
|
<optional>
|
1
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
this
setOptions(options) → {this}
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
this
setSubOptions(options) → {this}
Should only be given settings for object-valued options.
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
this
stretch(xopt, yopt, zopt) → {this}
Parameters:
Name |
Type |
Attributes |
Default |
Description |
x |
number
|
<optional>
|
1
|
|
y |
number
|
<optional>
|
1
|
|
z |
number
|
<optional>
|
1
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
this
surface(f, u, v) → {Array.<Geometry>}
Draw a parametric surface (or a wireframe representation, if our style has been set to "wireframe").
Parameters:
Name |
Type |
Description |
f |
function
|
parametric function |
u |
Array.<number>
|
first parametric coordinate range |
v |
Array.<number>
|
second parametric coordinate range |
- Inherited From:
- Source:
Returns:
-
Type
-
Array.<Geometry>
surfacePlot(vertices) → {Array.<Geometry>}
Uses the mathcell surfaceFromLines() function to draw a surface.
Parameters:
Name |
Type |
Description |
vertices |
Array.<Array.<Array.<number>>>
|
2D array of points to use as a surface mesh |
- Source:
Returns:
-
Type
-
Array.<Geometry>
text(str, vector) → {Array.<Geometry>}
Draw a text string.
Parameters:
Name |
Type |
Description |
str |
string
|
the text to display |
vector |
Array.<number>
|
position to display the text at |
- Source:
Returns:
-
Type
-
Array.<Geometry>
Apply current coordinate transform to vector v.
Parameters:
Name |
Type |
Description |
v |
Array.<number>
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
Array.<number>
translate(xopt, yopt, zopt) → {this}
Parameters:
Name |
Type |
Attributes |
Default |
Description |
x |
number
|
<optional>
|
0
|
|
y |
number
|
<optional>
|
0
|
|
z |
number
|
<optional>
|
0
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
this
wireframe(f, u, v) → {Array.<Geometry>}
Draw a wireframe of a parametric surface.
Parameters:
Name |
Type |
Description |
f |
function
|
parametric function |
u |
Array.<number>
|
first parametric coordinate range |
v |
Array.<number>
|
second parametric coordinate range |
- Inherited From:
- Source:
Returns:
-
Type
-
Array.<Geometry>