Class sandy.core.data.Vertex

Description

Vertex of a 3D mesh.

A vertex is a point which can be represented in differents coordinates. It leads to some extra properties specific to the vertex

Field Index

sx, sy, sz, wx, wy, wz

Inherited from Vector

x, y, z

Method Index

new Vertex()
getWorldVector(), toString()

Inherited from Vector

Constructor Detail

Vertex

public function Vertex(px:Number, py:Number, pz:Number)

Create a new Vertex Instance. If no

Parameters

pxthe x position number
pythe y position number
pzthe z position number

Field Detail

wx

public wx:Number
properties used to store transformed coordinates in the World coordinates

wy

public wy:Number

wz

public wz:Number

sx

public sx:Number
properties used to store transformed coordinates in screen World.

sy

public sy:Number

sz

public sz:Number

Method Detail

getWorldVector

public function getWorldVector(Void):Vector

Returns a vector representing the vertex in the world coordinate

Parameters

Void

Return

Vector a Vector

toString

public function toString(Void):String

Get a String represntation of the Vertex.

Return

A String representing the Vertex.

Overrides

toString() in sandy.core.data.Vector