Package | away3d.core.math |
Class | public final class Number2D |
Property | Defined 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 |
Method | Defined by | ||
---|---|---|---|
Number2D
(x:Number = 0, y:Number = 0) | Number2D | ||
[static]
| Number2D | ||
Number2D | |||
[static]
| Number2D | ||
normalize():void
| Number2D | ||
[static]
| Number2D | ||
[static]
| Number2D | ||
toString():String
| Number2D |
DOWN | property |
public static var DOWN:Number2D
LEFT | property |
public static var LEFT:Number2D
modulo | property |
modulo:Number
[read-only]Implementation
public function get modulo():Number
RIGHT | property |
public static var RIGHT:Number2D
UP | property |
public static var UP:Number2D
x | property |
public var x:Number
Horizontal coordinate.
y | property |
public var y:Number
Vertical coordinate.
Number2D | () | constructor |
public function Number2D(x:Number = 0, y:Number = 0)
Parameters
x:Number (default = 0 )
|
|
y:Number (default = 0 )
|
add | () | method |
public static function add(v:Number3D, w:Number3D):Number2D
Parameters
v:Number3D |
|
w:Number3D |
Number2D |
clone | () | method |
dot | () | method |
public static function dot(v:Number2D, w:Number2D):Number
Parameters
v:Number2D |
|
w:Number2D |
Number |
normalize | () | method |
public function normalize():void
scale | () | method |
public static function scale(v:Number2D, s:Number):Number2D
Parameters
v:Number2D |
|
s:Number |
Number2D |
sub | () | method |
public static function sub(v:Number2D, w:Number2D):Number2D
Parameters
v:Number2D |
|
w:Number2D |
Number2D |
toString | () | method |
public function toString():String
Returns
String |