Packageaway3d.core.base
Classpublic class Vertex
InheritanceVertex Inheritance ValueObject Inheritance flash.events.EventDispatcher

A vertex coordinate value object. Properties x, y and z represent a 3d point in space.

Public Properties
 PropertyDefined by
  extra : Object
An object that contains user defined properties.
Vertex
  position : Number3D
The vertex position vector
Vertex
  x : Number
Defines the x coordinate of the vertex relative to the local coordinates of the parent mesh object.
Vertex
  y : Number
Defines the y coordinate of the vertex relative to the local coordinates of the parent mesh object.
Vertex
  z : Number
Defines the z coordinate of the vertex relative to the local coordinates of the parent mesh object.
Vertex
Public Methods
 MethodDefined by
  
Vertex
(x:Number = 0, y:Number = 0, z:Number = 0)
Creates a new Vertex object.
Vertex
 Inherited
addOnChange(listener:Function):void
ValueObject
  
Duplicates the vertex properties to another Vertex object
Vertex
  
Projects the vertex to the screen space of the view.
Vertex
 Inherited
removeOnChange(listener:Function):void
ValueObject
  
toString():String
Used to trace the values of a vertex object.
Vertex
Protected Methods
 MethodDefined by
 Inherited
notifyChange():void
ValueObject
Property detail
extraproperty
public var extra:Object

An object that contains user defined properties. Defaults to null.

positionproperty 
position:Number3D  [read-write]

The vertex position vector

Implementation
    public function get position():Number3D
    public function set position(value:Number3D):void
xproperty 
x:Number  [read-write]

Defines the x coordinate of the vertex relative to the local coordinates of the parent mesh object.

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

Defines the y coordinate of the vertex relative to the local coordinates of the parent mesh object.

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

Defines the z coordinate of the vertex relative to the local coordinates of the parent mesh 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)Parameters
x:Number (default = 0) — [optional] The local x position of the vertex. Defaults to 0.
 
y:Number (default = 0) — [optional] The local y position of the vertex. Defaults to 0.
 
z:Number (default = 0) — [optional] The local z position of the vertex. Defaults to 0.
####INIT####
Method detail
clone()method
public function clone():Vertex

Duplicates the vertex properties to another Vertex object

Returns
Vertex — The new vertex instance with duplicated properties applied
project()method 
public function project(projection:Projection):ScreenVertex

Projects the vertex to the screen space of the view.

Parameters
projection:Projection

Returns
ScreenVertex
toString()method 
public override function toString():String

Used to trace the values of a vertex object.

Returns
String — A string representation of the vertex object.
Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments