goog.math.Line |
x0
: number
X coordinate of the start point.
|
y0
: number
Y coordinate of the start point.
|
x1
: number
X coordinate of the end point.
|
y1
: number
Y coordinate of the end point.
|
No description.
Returns: !goog.math.Line
A copy of this line.
|
code » | |||
Tests whether the given line is exactly the same as this one.
Arguments:
Returns: boolean
Whether the given line is the same as this one.
|
code » | |||
Computes the interpolation parameter for the point on the line closest to
a given point.
Arguments:
Returns: number
The interpolation parameter of the point on the line
closest to the given point.
|
code » | |||
Computes the point on the line closest to a given point. Note that a line
in this case is defined as the infinite line going through the start and end
points. To find the closest point on the line segment itself see
.
Arguments:
Returns: !goog.math.Coordinate
The point on the line closest to the given
point.
|
code » | |||
Computes the point on the line segment closest to a given point.
Arguments:
Returns: !goog.math.Coordinate
The point on the line segment closest to the
given point.
|
code » | |||
Returns the point on the line segment proportional to t, where for t = 0 we
return the starting point and for t = 1 we return the end point. For t < 0
or t > 1 we extrapolate along the line defined by the line segment.
Arguments:
Returns: !goog.math.Coordinate
The point on the line segment at t.
|
code » | |||
No description.
Returns: number
The length of the line segment used to define the line.
|
code » | |||
No description.
Returns: number
The squared length of the line segment used to define the
line.
|
code » |