FMVector2 Class Reference
[Mathematics Classes.]

A 2 dimensional vector. More...

#include <FMVector2.h>

List of all members.

Public Member Functions

 FMVector2 ()
 Creates an empty FMVector2.
 FMVector2 (float _u, float _v)
 Creates the FMVector2 with the coordinates given.
 operator float * ()
 Get this FMVector2 as an array of floats.
FMVector2operator+= (const FMVector2 &a)
 Adds two FMVector2.
FMVector2operator *= (float a)
 Multiplies this FMVector2 by a scaler.
FMVector2operator= (const float *f)
 Assign this FMVector2 to the given float array.

Public Attributes

float u
 The first coordinate.
float v
 The second coordinate.


Detailed Description

A 2 dimensional vector.

Not used within FCollada.


Constructor & Destructor Documentation

FMVector2::FMVector2 float  _u,
float  _v
[inline]
 

Creates the FMVector2 with the coordinates given.

Parameters:
_u The first coordinate.
_v The second coordinate.


Member Function Documentation

FMVector2& FMVector2::operator *= float  a  )  [inline]
 

Multiplies this FMVector2 by a scaler.

Multiplies each of this FMVector2's coordinates with the scaler and returns this FMVector2.

Parameters:
a The scalar to multiply with.
Returns:
This FMVector2.

FMVector2::operator float *  )  [inline]
 

Get this FMVector2 as an array of floats.

Returns:
The float array.

FMVector2& FMVector2::operator+= const FMVector2 a  )  [inline]
 

Adds two FMVector2.

Adds to this FMVector2's coordinates the individual components of the given FMVector2 and returns this FMVector2.

Parameters:
a The FMVector2 to add with this one.
Returns:
This FMVector2.

FMVector2& FMVector2::operator= const float *  f  )  [inline]
 

Assign this FMVector2 to the given float array.

Assigns each coordinate of this FMVector2 to the elements in the float array. The first element to the first coordinate and the second to the second. It returns this FMVector2.

Parameters:
f The float array to assign with.
Returns:
This FMVector2.


The documentation for this class was generated from the following file:
Generated on Fri May 12 16:44:44 2006 for FCollada by  doxygen 1.4.6-NO