goog.math.Bezier |
x0
: number
X coordinate of the start point.
|
y0
: number
Y coordinate of the start point.
|
x1
: number
X coordinate of the first control point.
|
y1
: number
Y coordinate of the first control point.
|
x2
: number
X coordinate of the second control point.
|
y2
: number
Y coordinate of the second control point.
|
x3
: number
X coordinate of the end point.
|
y3
: number
Y coordinate of the end point.
|
No description.
Returns: !goog.math.Bezier
A copy of this curve.
|
code » | ||
Test if the given curve is exactly the same as this one.
Arguments:
Returns: boolean
Whether the given curve is the same as this one.
|
code » | ||
![]()
Modifies the curve in place to progress in the opposite direction.
|
code » | ||
Computes the curve at a point between 0 and 1.
Arguments:
Returns: !goog.math.Coordinate
The computed coordinate.
|
code » | ||
Computes the curve's X coordinate at a point between 0 and 1.
|
code » | ||
Computes the curve's Y coordinate at a point between 0 and 1.
|
code » | ||
Computes the position t of a point on the curve given its x coordinate.
That is, for an input xVal, finds t s.t. getPointX(t) = xVal.
As such, the following should always be true up to some small epsilon:
t ~ solvePositionFromXValue(getPointX(t)) for t in [0, 1].
|
code » | ||
Computes the y coordinate of a point on the curve given its x coordinate.
|
code » | ||
![]()
Changes this curve in place to be the portion of itself from [s, t].
|
code » | ||
![]()
Changes this curve in place to be the portion of itself from [t, 1].
Arguments:
|
code » | ||
![]()
Changes this curve in place to be the portion of itself from [0, t].
Arguments:
|
code » |
![]()
X coordinate of the first point.
|
Code » | |
![]()
X coordinate of the first control point.
|
Code » | |
![]()
X coordinate of the second control point.
|
Code » | |
![]()
X coordinate of the end point.
|
Code » | |
![]()
Y coordinate of the first point.
|
Code » | |
![]()
Y coordinate of the first control point.
|
Code » | |
![]()
Y coordinate of the second control point.
|
Code » | |
![]()
Y coordinate of the end point.
|
Code » |
![]()
Constant used to approximate ellipses.
See: http://canvaspaint.org/blog/2006/12/ellipse/
|
Code » |