A mutable point in 2D coordinate space with double precision coordinates.
Remarks
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.geometry.MutablePoint
See Also
Constructors
Properties
Methods
Create a clone of this object.
Calculates the Euclidean distance between two points.
Parameters
A map of options to pass to the method.
- point2 - IPoint
- The second point.
Returns
- ↪number
- The distance between the two points.
Overrides
Returns a hash code for this object.
Remarks
The hash code is a numeric value that can be used to treat this object as a key in a hash table or similar data structure.
Two objects that are considered equal must have the same hash code. However, the reverse does not hold and two objects having the same hash code don't have to be equal. Ideally, the hash code should be roughly uniformly-distributed to prevent hash tables from performing poorly. Calculating the hash code is also a potentially frequent operation and should therefore be fast.
Returns
- ↪number
- the hash code for this object
Normalizes this point as if it was a vector.
Remarks
1.0d
if it is treated as a vector.See Also
Sets the coordinates of the point to the given values.
Parameters
A map of options to pass to the method.
- x - number
- The new x coordinate
- y - number
- The new y coordinate
Defined in
Sets the coordinates of the point to the given values.
Parameters
A map of options to pass to the method.
- location - IPoint
- The new location.