Package | away3d.core.base |
Class | public class Vertex |
Inheritance | Vertex ![]() ![]() |
Property | Defined 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 |
Method | Defined by | ||
---|---|---|---|
Vertex
(x:Number = 0, y:Number = 0, z:Number = 0)
Creates a new
Vertex object. | Vertex | ||
![]() |
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 | ||
![]() |
removeOnChange(listener:Function):void
| ValueObject | |
toString():String
Used to trace the values of a vertex object.
| Vertex |
extra | property |
public var extra:Object
An object that contains user defined properties. Defaults to null.
position | property |
position:Number3D
[read-write]The vertex position vector
Implementation public function get position():Number3D
public function set position(value:Number3D):void
x | property |
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
y | property |
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
z | property |
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
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.
|
clone | () | method |
public function clone():Vertex
Duplicates the vertex properties to another Vertex
object
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.
Parametersprojection:Projection |
ScreenVertex |
toString | () | method |
public override function toString():String
Used to trace the values of a vertex object.
ReturnsString — A string representation of the vertex object.
|