The Number3D class represents a value in a three-dimensional coordinate system.
Properties x, y and z represent the horizontal, vertical and z the depth axes respectively.
FRONT:JNumber3D [read-only]
Implementation
public static function get FRONT():JNumber3D
modulo:Number [read-only]
Modulo
Implementation
public function get modulo():Number
modulo2:Number [read-only]Implementation
public function get modulo2():Number
NUM_HUGE:Number [read-only]Implementation
public static function get NUM_HUGE():Number
NUM_TINY:Number [read-only]Implementation
public static function get NUM_TINY():Number
RIGHT:JNumber3D [read-only]
Implementation
public static function get RIGHT():JNumber3D
UP:JNumber3D [read-only]
Implementation
public static function get UP():JNumber3D
public var x:Number
The horizontal coordinate value.
public var y:Number
The vertical coordinate value.
public var z:Number
The depth coordinate value.
ZERO:JNumber3D [read-only]
Returns a Number3D object with x, y and z properties set to zero.
Implementation
public static function get ZERO():JNumber3D
public function JNumber3D(x:Number = 0, y:Number = 0, z:Number = 0)
Creates a new Number3D object whose three-dimensional values are specified by the x, y and z parameters. If you call this constructor function without parameters, a Number3D with x, y and z properties set to zero is created.
Parameters
| x:Number (default = 0) — The horizontal coordinate value. The default value is zero.
|
| |
| y:Number (default = 0) — The vertical coordinate value. The default value is zero.
|
| |
| z:Number (default = 0) — The depth coordinate value. The default value is zero.
|
public static function add(v:JNumber3D, w:JNumber3D):JNumber3D
Add
Parameters
Returns
public function clone():JNumber3D
Returns a new Number3D object that is a clone of the original instance with the same three-dimensional values.
Returns
| JNumber3D —
A new Number3D instance with the same three-dimensional values as the original Number3D instance.
|
public function copyFromArray(arr:Array):voidParameters
public function copyTo(n:JNumber3D):void
Copies the values of this number3d to the passed number3d.
Parameters
public static function cross(v:JNumber3D, w:JNumber3D):JNumber3D
Cross product.
Parameters
Returns
public static function divide(v:JNumber3D, w:Number):JNumber3DParameters
Returns
public static function dot(v:JNumber3D, w:JNumber3D):Number
Dot product.
Parameters
Returns
public static function getNormal(v0:JNumber3D, v1:JNumber3D, v2:JNumber3D):JNumber3DParameters
Returns
public function isFinite():Boolean
Returns
public static function limiteNumber(num:Number, min:Number, max:Number):NumberParameters
| num:Number |
| |
| min:Number |
| |
| max:Number |
Returns
public static function multiply(v:JNumber3D, w:Number):JNumber3DParameters
Returns
public function normalize():void
Normalize.
public function setTo(x:Number = 0, y:Number = 0, z:Number = 0):voidParameters
| x:Number (default = 0) |
| |
| y:Number (default = 0) |
| |
| z:Number (default = 0) |
public static function sub(v:JNumber3D, w:JNumber3D):JNumber3D
Substract.
Parameters
Returns
public function toArray():Array
Returns
public function toString():String
Returns a string value representing the three-dimensional values in the specified Number3D object.
Returns