Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Vertex3 Class Reference

3D vertex class, right-handed coordinates system. More...

#include <Vertex3.h>

Inherited by Vertex4.

Inheritance diagram for Vertex3:

Inheritance graph
[legend]
List of all members.

Public Types

enum  Component { X, Y, Z }

Public Methods

 Vertex3 ()
 Vertex3 (real xx, real yy, real zz)
 Vertex3 (const Vertex3 &v)
realoperator[] (unsigned int i)
Component largestComponent () const
Vertex3 & lerp (Vertex3 &from, Vertex3 &to, float t)
Vertex3 & operator= (const Vertex3 &v)
Vertex3 & operator= (const Vertex4 &v)
void operator-= (const Vertex3 &v)
void operator+= (const Vertex3 &v)
void operator *= (real r)
void operator/= (real r)
void operator &= (const Vertex3 &v)
Vertex3 operator- (const Vertex3 &v) const
Vertex3 operator+ (const Vertex3 &v) const
Vertex3 operator * (real r) const
Vertex3 operator/ (real r) const
real operator * (const Vertex3 &v) const
Vertex3 operator & (const Vertex3 &v) const
 Cross product. More...

real sqrNorm () const
real norm () const
real maxNorm ()
Vertex3 & normalize ()
Vertex3 & setLength (real s)
Vertex3 & invert ()
Vertex3 & scale (Vertex3 &v)
Vertex3 & rotateX (real alpha)
 calculates: this = rotate(alpha) * this.

Vertex3 & rotateY (real alpha)
Vertex3 & rotateZ (real alpha)

Public Attributes

real x
real y
real z

Detailed Description

3D vertex class, right-handed coordinates system.


Member Function Documentation

Vertex3 Vertex3::operator & const Vertex3 &    v const [inline]
 

Cross product.

Calculates:


The documentation for this class was generated from the following files:
This documentation was generated using doxygen. If you have any comments or additions please mail me.