Home

Download

Features

Screenshots

Handbook

Browse Source

Authors

SourceForge.net Logo
Hosted by SourceForge.net

OSI Certified


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

FungVector Class Reference

3-D vector class for performing operations with vectors in three dimensional space. More...

#include <fungvector.h>

List of all members.

Public Methods

 FungVector (float x=0, float y=0, float z=0)
 FungVector (SphericalCoord &)
 FungVector (CylindricalCoord &)
 ~FungVector ()
void toArray (float vec[3])
 Puts the vector into a three dimensional array.


Static Public Methods

FungVector normal (FungVector, FungVector, FungVector)
 Calculates the normal vector for the given three vectors.

void cross_product (FungVector &, FungVector &, FungVector &, FungVector *)
 Calculates the cross product of three vectors.

float magnitude (FungVector &)
 Calculates the magnitude of a vector.

void normalize (FungVector *)
 Normalizes the given vector.


Public Attributes

float x
float y
float z


Detailed Description

3-D vector class for performing operations with vectors in three dimensional space.

Author:
Fungmeista

Definition at line 28 of file fungvector.h.


Member Function Documentation

FungVector FungVector::normal FungVector   ,
FungVector   ,
FungVector   
[static]
 

Calculates the normal vector for the given three vectors.

A normal vector is a vector perpendicular to the plane consisting of three given vectors. No two vectors can lie on the same line. The normal vector returned is the unit normal.

Definition at line 64 of file fungvector.cpp.

References cross_product(), and normalize().


The documentation for this class was generated from the following files: