Packageorg.papervision3d.core.geom.renderables
Classpublic class Vertex3DInstance

The Vertex3DInstance constructor lets you create 2D projected vertices.



Public Properties
 PropertyDefined by
  extra : Object
An object that contains user defined properties.
Vertex3DInstance
  normal : Number3D
Vertex3DInstance
  visible : Boolean
[internal-use] A Boolean value that indicates whether the vertex is visible after projection.
Vertex3DInstance
  x : Number
An Number that sets the X coordinate of a object relative to the scene coordinate system.
Vertex3DInstance
  y : Number
An Number that sets the Y coordinate of a object relative to the scene coordinates.
Vertex3DInstance
  z : Number
An Number that sets the Z coordinate of a object relative to the scene coordinates.
Vertex3DInstance
Public Methods
 MethodDefined by
  
Vertex3DInstance(x:Number = 0, y:Number = 0, z:Number = 0)
Creates a new Vertex2D object whose three-dimensional values are specified by the x, y and z parameters.
Vertex3DInstance
  
Vertex3DInstance
  
[static]
Vertex3DInstance
  
deperspective(focus:Number):Vertex3D
Vertex3DInstance
  
Calculates the distance between two screen vertex objects.
Vertex3DInstance
  
Calculates the squared distance between two screen vertex objects.
Vertex3DInstance
  
[static]
Vertex3DInstance
  
[static]
Vertex3DInstance
  
[static]
Vertex3DInstance
  
[static]
Vertex3DInstance
Property detail
extraproperty
public var extra:Object

An object that contains user defined properties.

normalproperty 
public var normal:Number3D
visibleproperty 
public var visible:Boolean

[internal-use] A Boolean value that indicates whether the vertex is visible after projection. If false, it indicates that the vertex is behind the camera plane.

xproperty 
public var x:Number

An Number that sets the X coordinate of a object relative to the scene coordinate system.

yproperty 
public var y:Number

An Number that sets the Y coordinate of a object relative to the scene coordinates.

zproperty 
public var z:Number

An Number that sets the Z coordinate of a object relative to the scene coordinates.

Constructor detail
Vertex3DInstance()constructor
public function Vertex3DInstance(x:Number = 0, y:Number = 0, z:Number = 0)

Creates a new Vertex2D object whose three-dimensional values are specified by the x, y and z parameters.

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.
Method detail
clone()method
public function clone():Vertex3DInstance

Returns
Vertex3DInstance
cross()method 
public static function cross(v0:Vertex3DInstance, v1:Vertex3DInstance):NumberParameters
v0:Vertex3DInstance
 
v1:Vertex3DInstance

Returns
Number
deperspective()method 
public function deperspective(focus:Number):Vertex3DParameters
focus:Number

Returns
Vertex3D
distance()method 
public function distance(b:Vertex3DInstance):Number

Calculates the distance between two screen vertex objects.

Parameters
b:Vertex3DInstance — The second screen vertex object to use for the calcation.

Returns
Number — The scalar value of the vector between this and the given screen vertex.
distanceSqr()method 
public function distanceSqr(b:Vertex3DInstance):Number

Calculates the squared distance between two screen vertex objects.

Parameters
b:Vertex3DInstance — The screen vertex object to use for the calcation.

Returns
Number — The squared scalar value of the vector between this and the given scren vertex.
dot()method 
public static function dot(v0:Vertex3DInstance, v1:Vertex3DInstance):NumberParameters
v0:Vertex3DInstance
 
v1:Vertex3DInstance

Returns
Number
median()method 
public static function median(a:Vertex3DInstance, b:Vertex3DInstance, focus:Number):Vertex3DInstanceParameters
a:Vertex3DInstance
 
b:Vertex3DInstance
 
focus:Number

Returns
Vertex3DInstance
sub()method 
public static function sub(v0:Vertex3DInstance, v1:Vertex3DInstance):Vertex3DInstanceParameters
v0:Vertex3DInstance
 
v1:Vertex3DInstance

Returns
Vertex3DInstance
subTo()method 
public static function subTo(v0:Vertex3DInstance, v1:Vertex3DInstance, o:Vertex3DInstance):voidParameters
v0:Vertex3DInstance
 
v1:Vertex3DInstance
 
o:Vertex3DInstance