Constructor
new ParametricFunctionPlot(expression_x, expression_y, domain, x_range, y_range, discontinuities, min_depthopt, max_depthopt, thresholdopt)
Creates a new ParametricFunctionPlot from an expression, domain, x-range, y-range, and other optional parameters.
Name | Type | Attributes | Description |
---|---|---|---|
expression_x | string | The x expression of the parametric function. | |
expression_y | string | The y expression of the parametric function. | |
domain | ClosedInterval | The domain of the parametric function. | |
x_range | ClosedInterval | The x-range of the plot. | |
y_range | ClosedInterval | The y-range of the plot. | |
discontinuities | Array.<number> | The discontinuities of the plot. | |
min_depth | number | | <optional> | The minimum depth of the plot. |
max_depth | number | | <optional> | The maximum depth of the plot. |
threshold | number | | <optional> | The threshold of the plot. |
- Source
Classes
Members
discontinuities
Returns the discontinuities of the plot.
- Source
domain
Returns the domain of the parametric function.
- Source
expression
Returns the expression of the parametric function.
- Source
expression_x
Returns the x expression of the parametric function.
- Source
expression_y
Returns the y expression of the parametric function.
- Source
max_depth
Returns the maximum depth of the plot.
- Source
min_depth
Returns the minimum depth of the plot.
- Source
threshold
Returns the threshold of the plot.
- Source
vector_object_builder
Gets a VectorObjectBuilder with the plot's points.
- Source
x_range
Returns the x-range of the plot.
- Source
y_range
Returns the y-range of the plot.
- Source
Methods
contains(point) → {boolean}
Checks if point is within the plot.
Name | Type | Description |
---|---|---|
point | Point2D | The point to check. |
- Source
A boolean indicating if the point is within the plot.
- Type:
- boolean
error(point1, point2) → {number}
Returns the error of both Point2Ds.
- Source
The error of both Point2Ds.
- Type:
- number
evaluate(t) → {Point2D|undefined}
Evaluates the parametric function at a given value.
Name | Type | Description |
---|---|---|
t | number | The value to evaluate the parametric function at. |
- Source
The evaluated point.
- Type:
- Point2D |
undefined
hash(min, max) → {number}
Cheap hash function for the plot. Reference: https://github.com/stevenpetryk/mafs/blob/85c954ee649bebe65963bc8e7ad5708797c394d6/src/display/Plot/PlotUtils.tsx#L26
Name | Type | Description |
---|---|---|
min | number | The minimum value of the object to hash. |
max | number | The maximum value of the object to hash. |
- Source
The hash of the plot.
- Type:
- number
is_discontinuity(number) → {boolean}
Checks if a number is a discontinuity of the plot.
Name | Type | Description |
---|---|---|
number | number | The number to check. |
- Source
A boolean indicating if the number is a discontinuity of the plot.
- Type:
- boolean