Packageaway3d.core.math
Classpublic final class Number2D

A point in 2D space.

Public Properties
 PropertyDefined by
  DOWN : Number2D
[static]
Number2D
  LEFT : Number2D
[static]
Number2D
  modulo : Number
[read-only]
Number2D
  RIGHT : Number2D
[static]
Number2D
  UP : Number2D
[static]
Number2D
  x : Number
Horizontal coordinate.
Number2D
  y : Number
Vertical coordinate.
Number2D
Public Methods
 MethodDefined by
  
Number2D
(x:Number = 0, y:Number = 0)
Number2D
  
[static]
Number2D
  
Number2D
  
dot(v:Number2D, w:Number2D):Number
[static]
Number2D
  
normalize():void
Number2D
  
scale(v:Number2D, s:Number):Number2D
[static]
Number2D
  
[static]
Number2D
  
toString():String
Number2D
Property detail
DOWNproperty
public static var DOWN:Number2D
LEFTproperty 
public static var LEFT:Number2D
moduloproperty 
modulo:Number  [read-only]Implementation
    public function get modulo():Number
RIGHTproperty 
public static var RIGHT:Number2D
UPproperty 
public static var UP:Number2D
xproperty 
public var x:Number

Horizontal coordinate.

yproperty 
public var y:Number

Vertical coordinate.

Constructor detail
Number2D()constructor
public function Number2D(x:Number = 0, y:Number = 0)Parameters
x:Number (default = 0)
 
y:Number (default = 0)
Init Parameters
Method detail
add()method
public static function add(v:Number3D, w:Number3D):Number2D Parameters
v:Number3D
 
w:Number3D

Returns
Number2D
clone()method 
public function clone():Number2D

Returns
Number2D
dot()method 
public static function dot(v:Number2D, w:Number2D):Number Parameters
v:Number2D
 
w:Number2D

Returns
Number
normalize()method 
public function normalize():void
scale()method 
public static function scale(v:Number2D, s:Number):Number2D Parameters
v:Number2D
 
s:Number

Returns
Number2D
sub()method 
public static function sub(v:Number2D, w:Number2D):Number2D Parameters
v:Number2D
 
w:Number2D

Returns
Number2D
toString()method 
public function toString():String

Returns
String
Wiki link
Click to go to the wiki page for 'away3d.core.math.Number2D'

Code examples

Comments