Packageaway3d.core.base
Classpublic class VertexPosition

Vertex position value object.

Public Properties
 PropertyDefined by
  vertex : Vertex
VertexPosition
  x : Number
Defines the x coordinate.
VertexPosition
  y : Number
Defines the y coordinate.
VertexPosition
  z : Number
Defines the z coordinate.
VertexPosition
Public Methods
 MethodDefined by
  
Creates a new VertexPosition object.
VertexPosition
  
add(value:Number3D):void
Adjusts the position of the vertex object by Number3D.
VertexPosition
  
adjust(k:Number = 1):void
Adjusts the position of the vertex object incrementally.
VertexPosition
  
getIndex(vertices:Array):int
VertexPosition
  
reset():void
Reset the position of the vertex object by Number3D.
VertexPosition
  
Transforms the position of the vertex object by the given 3d matrix.
VertexPosition
Property detail
vertexproperty
public var vertex:Vertex
xproperty 
public var x:Number

Defines the x coordinate.

yproperty 
public var y:Number

Defines the y coordinate.

zproperty 
public var z:Number

Defines the z coordinate.

Constructor detail
VertexPosition()constructor
public function VertexPosition(vertex:Vertex)Parameters
vertex:Vertex — The vertex object used to define the default x, y and z values.
Init Parameters
Method detail
add()method
public function add(value:Number3D):void

Adjusts the position of the vertex object by Number3D.

Parameters
value:Number3D — Amount to add in Number3D format.
adjust()method 
public function adjust(k:Number = 1):void

Adjusts the position of the vertex object incrementally.

Parameters
k:Number (default = 1) — The fraction by which to adjust the vertex values.
getIndex()method 
public function getIndex(vertices:Array):int Parameters
vertices:Array

Returns
int
reset()method 
public function reset():void

Reset the position of the vertex object by Number3D.

transform()method 
public function transform(m:Matrix3D):void

Transforms the position of the vertex object by the given 3d matrix.

Parameters
m:Matrix3D — The 3d matrix to use.
Wiki link
Click to go to the wiki page for 'away3d.core.base.VertexPosition'

Code examples

Comments