| Package | com.yworks.canvas.geom |
| Class | public class ImmutablePoint |
| Inheritance | ImmutablePoint Object |
| Implements | IPoint |
IPoint whose state cannot
be changed.
| Property | Defined By | ||
|---|---|---|---|
| x : Number [read-only]
Returns the x coordinate of this instance. | ImmutablePoint | ||
| y : Number [read-only]
Returns the y coordinate of this instance. | ImmutablePoint | ||
| Method | Defined By | ||
|---|---|---|---|
ImmutablePoint(x:Number, y:Number)
Creates an instance using the given coordinate pair. | ImmutablePoint | ||
[static]
Creates an immutable IPoint instance
using the given coordinates. | ImmutablePoint | ||
| Constant | Defined By | ||
|---|---|---|---|
| ORIGIN : IPoint [static]
An instance of an immutable point whose coordinates are (0,0) always. | ImmutablePoint | ||
| x | property |
x:Number [read-only] Returns the x coordinate of this instance.
An instance of this type will always return the same value.
public function get x():Number| y | property |
y:Number [read-only] Returns the y coordinate of this instance.
An instance of this type will always return the same value.
public function get y():Number| ImmutablePoint | () | Constructor |
public function ImmutablePoint(x:Number, y:Number)Creates an instance using the given coordinate pair.
Parametersx:Number — The x coordinate
| |
y:Number — The y coordinate
|
| create | () | method |
public static function create(x:Number, y:Number):IPoint
Creates an immutable IPoint instance
using the given coordinates.
Parameters
x:Number — The x coordinate
| |
y:Number — The y coordinate
|
IPoint — The newly created point.
|
| ORIGIN | Constant |
public static const ORIGIN:IPointAn instance of an immutable point whose coordinates are (0,0) always.