Interface for a mutable point in 2D coordinate space with double precision coordinates.
Implements
Inheritance Hierarchy
Remarks
This interface provides read and write access to the coordinates. It adds write access to the read-only interface IPoint.
See Also
API
- IPoint, MutablePoint
Members
Show:
Properties
Methods
Calculates the Euclidean distance between two points.
Calculates the Euclidean distance between two points.
Parameters
- point2: IPoint
- The second point.
Return Value
- number
- The distance between the two points.
Defined in
IPoint.distanceToParameters
- x: number
- the x coordinate of the second point
- y: number
- the y coordinate of the second point
Return Value
- number
- the Euclidean distance between this point and the point (x,y).
Defined in
IPoint.distanceToParameters
- location: IPoint
- The new location.
Parameters
- x: number
- The new x-coordinate.
- y: number
- The new y-coordinate.
This method is useful to obtain a copy of the state and for making use of the various utility methods that are provided by Point.
Return Value
- Point
- The current values of the coordinates of the point.