Packagecom.yworks.bridge.geom
Classpublic class Point2DDouble
InheritancePoint2DDouble Inheritance Point2D Inheritance YObject Inheritance Object

The Double class defines a point specified in double precision.



Public Properties
 PropertyDefined By
 Inheritedlocation : 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
Public Methods
 MethodDefined By
  
Point2DDouble(x:Number, y:Number, init:Boolean = true)
Constructs and initializes a Point2D with the specified coordinates.
Point2DDouble
  
clone():Object
[override]
Point2DDouble
 Inherited
distance(p:Point2D):Number
Returns the distance from this Point2D to a specified point.
Point2D
 Inherited
distance2(px:Number, py:Number):Number
Returns the distance from this Point2D to a specified point.
Point2D
 Inherited
distanceBetween(x1:Number, y1:Number, x2:Number, y2:Number):Number
[static] Returns the distance between two points.
Point2D
 Inherited
distanceBetweenSq(x1:Number, y1:Number, x2:Number, y2:Number):Number
[static] Returns the square of the distance between two points.
Point2D
 Inherited
Returns the square of the distance from this Point2D to a specified point.
Point2D
 Inherited
distanceSq2(px:Number, py:Number):Number
Returns the square of the distance from this Point2D to a specified point.
Point2D
 Inherited
equals(obj:Object):Boolean
[override] Determines whether or not two points are equal.
Point2D
  
getClass():Class
[override]
Point2DDouble
 Inherited
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
Protected Methods
 MethodDefined By
  
cloneImpl(o:Object):void
[override]
Point2DDouble
 Inherited
Point2D
  
Initializes this object.
Point2DDouble
  
initPoint2DDouble2(x:Number, y:Number):void
Initializes this object.
Point2DDouble
Property Detail
_xproperty
public var _x:Number

_yproperty 
public var _y:Number

xproperty 
x:Number  [read-only] [override]

Returns the X coordinate of this Point2D in double precision.


Implementation
    public function get x():Number
yproperty 
y:Number  [read-only] [override]

Returns the Y coordinate of this Point2D in double precision.


Implementation
    public function get y():Number
Constructor Detail
Point2DDouble()Constructor
public function Point2DDouble(x:Number, y:Number, init:Boolean = true)

Constructs 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.
 
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.
Method Detail
clone()method
override public function clone():Object

Returns
Object
cloneImpl()method 
override protected function cloneImpl(o:Object):void

Parameters

o:Object

getClass()method 
override public function getClass():Class

Returns
Class
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():Point2DDouble

Constructs and initializes a Point2D with coordinates (0, 0).

Returns
Point2DDouble
newPoint2DDouble2()method 
public static function newPoint2DDouble2(x:Number, y:Number):Point2DDouble

Constructs 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.

Returns
Point2DDouble
setLocation()method 
override public function setLocation(x:Number, y:Number):void

Sets 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():String

Returns
String