A mutable size in 2D coordinate space with double precision values.
Implements
- I
- I
- I
Remarks
This implementation stores the values of the width and height in double precision floating point members.
See Also
Members
Show:
Constructors
Creates an instance using the values provided by the size instance.
Creates an instance using the values provided by the size instance.
This will not create a dynamic instance. The values will be copied from
size immediately and no reference is held to that instance thereafter.Parameters
- size: ISize
- A size to retrieve the initial values from.
Properties
Methods
Create a clone of this object.
Create a clone of this object.
final
Parameters
- other: any
- the other object to compare for equality
Return Value
- boolean
trueifotheris considered equal to this instance.
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.
final
Return Value
- number
- the hash code for this object
Sets the coordinates of the size to the given values.
Sets the coordinates of the size to the given values.
Parameters
- newWidth: number
- The new x-coordinate
- newHeight: number
- The new y-coordinate
Defined in
IMutableSize.setSizeReturn Value
Defined in
ISize.toSizeStatic Methods
Performs an explicit conversion from Size to MutableSize.
Performs an explicit conversion from Size to MutableSize.
Performs an implicit conversion from MutableSize to Size.
Performs an implicit conversion from MutableSize to Size.