| Package | com.yworks.bridge.geom |
| Class | public class Point2DDouble |
| Inheritance | Point2DDouble Point2D YObject Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | location : Point2D [write-only]
Sets the location of this Point2D to the same coordinates as the specified Point2D object. | Point2D | |
| _x : Number | Point2DDouble | ||
| x : Number [override] [read-only]
Returns the X coordinate of this Point2D in double precision. | Point2DDouble | ||
| _y : Number | Point2DDouble | ||
| y : Number [override] [read-only]
Returns the Y coordinate of this Point2D in double precision. | Point2DDouble | ||
| Method | Defined By | ||
|---|---|---|---|
Point2DDouble(x:Number, y:Number, init:Boolean = true)
Constructs and initializes a Point2D with the specified coordinates. | Point2DDouble | ||
clone():Object [override] | Point2DDouble | ||
![]() |
Returns the distance from this Point2D to a specified point. | Point2D | |
![]() | distance2(px:Number, py:Number):Number
Returns the distance from this Point2D to a specified point. | Point2D | |
![]() | distanceBetween(x1:Number, y1:Number, x2:Number, y2:Number):Number [static]
Returns the distance between two points. | Point2D | |
![]() | distanceBetweenSq(x1:Number, y1:Number, x2:Number, y2:Number):Number [static]
Returns the square of the distance between two points. | Point2D | |
![]() | distanceSq(p:Point2D):Number
Returns the square of the distance from this Point2D to a specified point. | Point2D | |
![]() | distanceSq2(px:Number, py:Number):Number
Returns the square of the distance from this Point2D to a specified point. | Point2D | |
![]() | equals(obj:Object):Boolean [override]
Determines whether or not two points are equal. | Point2D | |
getClass():Class [override] | Point2DDouble | ||
![]() | hashCode():int [override] | Point2D | |
[static]
Constructs and initializes a Point2D with coordinates (0, 0). | Point2DDouble | ||
newPoint2DDouble2(x:Number, y:Number):Point2DDouble [static]
Constructs and initializes a Point2D with the specified coordinates. | Point2DDouble | ||
setLocation(x:Number, y:Number):void [override]
Sets the location of this Point2D to the specified double coordinates. | Point2DDouble | ||
toString():String | Point2DDouble | ||
| Method | Defined By | ||
|---|---|---|---|
cloneImpl(o:Object):void [override] | Point2DDouble | ||
![]() | initPoint2D():void | Point2D | |
initPoint2DDouble1():void
Initializes this object. | Point2DDouble | ||
initPoint2DDouble2(x:Number, y:Number):void
Initializes this object. | Point2DDouble | ||
| _x | property |
public var _x:Number
| _y | property |
public var _y:Number
| x | property |
x:Number [read-only] [override] Returns the X coordinate of this Point2D in double precision.
public function get x():Number| y | property |
y:Number [read-only] [override] Returns the Y coordinate of this Point2D in double precision.
public function get y():Number| Point2DDouble | () | Constructor |
public function Point2DDouble(x:Number, y:Number, init:Boolean = true)Constructs and initializes a Point2D with the specified coordinates.
Parametersx:Number — the x coordinate of the newly constructed point.
| |
y:Number — the y coordinate of the newly constructed point.
| |
init:Boolean (default = true) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods.
This parameter can safely be ignored/omitted when calling the constructor.
|
| clone | () | method |
override public function clone():ObjectReturnsObject |
| cloneImpl | () | method |
override protected function cloneImpl(o:Object):voidParameters
o:Object |
| getClass | () | method |
override public function getClass():ClassReturnsClass |
| initPoint2DDouble1 | () | method |
protected final function initPoint2DDouble1():void
Initializes this object. See the documentation of the corresponding factory method newPoint2DDouble1() for details.
See also
| initPoint2DDouble2 | () | method |
protected final function initPoint2DDouble2(x:Number, y:Number):void
Initializes this object. See the documentation of the corresponding factory method newPoint2DDouble2() for details.
Parameters
x:Number | |
y:Number |
See also
| newPoint2DDouble1 | () | method |
public static function newPoint2DDouble1():Point2DDoubleConstructs and initializes a Point2D with coordinates (0, 0).
ReturnsPoint2DDouble |
| newPoint2DDouble2 | () | method |
public static function newPoint2DDouble2(x:Number, y:Number):Point2DDoubleConstructs and initializes a Point2D with the specified coordinates.
Parameters
x:Number — the x coordinate of the newly constructed point.
| |
y:Number — the y coordinate of the newly constructed point.
|
Point2DDouble |
| setLocation | () | method |
override public function setLocation(x:Number, y:Number):voidSets the location of this Point2D to the specified double coordinates.
Parameters
x:Number — the x coordinate of the new location.
| |
y:Number — the y coordinate of the new location.
|
| toString | () | method |
public function toString():StringReturnsString |