Packageaway3d.core.base.data
Classpublic class Vertex

Vertex value object.

Public Properties
 PropertyDefined by
  index : uint
Vertex
  x : Number
To define/store the x value of the value object
Vertex
  y : Number
To define/store the y value of the value object
Vertex
  z : Number
To define/store the z value of the value object
Vertex
Public Methods
 MethodDefined by
  
Vertex
(x:Number = 0, y:Number = 0, z:Number = 0, index:uint = 0)
Creates a new Vertex value object.
Vertex
  
returns a new Vertex value Object
Vertex
  
toString():String
returns the value object as a string for trace/debug purpose
Vertex
Property detail
indexproperty
index:uint  [read-write]Implementation
    public function get index():uint
    public function set index(value:uint):void
xproperty 
x:Number  [read-write]

To define/store the x value of the value object

Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number  [read-write]

To define/store the y value of the value object

Implementation
    public function get y():Number
    public function set y(value:Number):void
zproperty 
z:Number  [read-write]

To define/store the z value of the value object

Implementation
    public function get z():Number
    public function set z(value:Number):void
Constructor detail
Vertex()constructor
public function Vertex(x:Number = 0, y:Number = 0, z:Number = 0, index:uint = 0)Parameters
x:Number (default = 0) — [optional] The x value. Defaults to 0.
 
y:Number (default = 0) — [optional] The y value. Defaults to 0.
 
z:Number (default = 0) — [optional] The z value. Defaults to 0.
 
index:uint (default = 0) — [optional] The index value. Defaults is NaN.
Init Parameters
Method detail
clone()method
public function clone():Vertex

returns a new Vertex value Object

Returns
Vertex
toString()method 
public function toString():String

returns the value object as a string for trace/debug purpose

Returns
String
Wiki link
Click to go to the wiki page for 'away3d.core.base.data.Vertex'

Code examples

Comments