Class sandy.math.VertexMath

Description

Math functions for Vertex.

Method Index

addVertex(), clone(), cross(), dot(), negate(), sub()

Inherited from VectorMath

Method Detail

negate

static public function negate(v:Vertex):Vertex

Compute the oposite of the Vertex.

Parameters

Return

a Vertex.

Overrides

negate() in sandy.math.VectorMath

dot

static public function dot(v:Vertex, w:Vertex):Number

Compute the dot product of the two Vertex.

Parameters

Return

the dot procuct of the 2 Vertex.

Overrides

dot() in sandy.math.VectorMath

addVertex

static public function addVertex(v:Vertex, w:Vertex):Vertex

Compute the addition of the two Vertex. TODO : Check here! We should add all the properties of the vertices!

Parameters

Return

The resulting Vertex.

sub

static public function sub(v:Vertex, w:Vertex):Vertex

Compute the substraction of the two Vertex.

Parameters

Return

The resulting Vertex.

Overrides

sub() in sandy.math.VectorMath

cross

static public function cross(w:Vertex, v:Vertex):Vertex

Compute the cross product of the two Vertex.

Parameters

Return

the Vertex resulting of the cross product.

Overrides

cross() in sandy.math.VectorMath

clone

static public function clone(v:Vertex):Vertex

clone the Vertex.

Parameters

Return

a clone of the Vertex passed in parameters

Overrides

clone() in sandy.math.VectorMath