Class org.papervision3d.core.Number3D

org.papervision3d.core.Number3D

Description

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.

Field Index

x, y, z, ZERO

Method Index

new Number3D()

clone(), toString()

Constructor Detail

Number3D

public function Number3D(x:Number, y:Number, z:Number)

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

xThe horizontal coordinate value. The default value is zero.
yThe vertical coordinate value. The default value is zero.
zThe depth coordinate value. The default value is zero.

Field Detail

x

public x:Number
The horizontal coordinate value.

y

public y:Number
The vertical coordinate value.

z

public z:Number
The depth coordinate value.

ZERO

static public ZERO:Number3D [Read Only]
Returns a Number3D object with x, y and z properties set to zero.

Method Detail

clone

public function clone():Number3D

Returns a new Number3D object that is a clone of the original instance with the same three-dimensional values.

Return

A new Number3D instance with the same three-dimensional values as the original Number3D instance.

toString

public function toString():String

Returns a string value representing the three-dimensional values in the specified Number3D object.

Return

A string.