 ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki # Math::Matrix< 3, 1 > Class Template Reference

`#include <vector3d.h>`

Inheritance diagram for Math::Matrix< 3, 1 >: [legend]
Collaboration diagram for Math::Matrix< 3, 1 >: [legend]

List of all members.

## Public Member Functions

float & x ()
float x () const
float & y ()
float y () const
float & z ()
float z () const
Matrix ()
Matrix (float lx, float ly, float lz)
Matrix (const MatrixBase< 3, 1 > &m)
Matrix (const float *data)
void set (float lx, float ly, float lz)
Set the value of the vector using three floats.
Angle unitCircleAngle () const
Get the angle of this vector around the unit circle This operation ignores the z-component.

## Static Public Member Functions

static Vector3d crossProduct (const Vector3d &v1, const Vector3d &v2)
Find the cross product between two vectors.
static Angle angle (const Vector3d &v1, const Vector3d &v2)
Find the angle between two vectors.

## Detailed Description

### template<> class Math::Matrix< 3, 1 >

Definition at line 37 of file vector3d.h.

## Constructor & Destructor Documentation

 Math::Vector3d::Matrix ( )

Definition at line 28 of file vector3d.cpp.

 Math::Vector3d::Matrix ( float lx, float ly, float lz )

Definition at line 33 of file vector3d.cpp.

 Math::Vector3d::Matrix ( const MatrixBase< 3, 1 > & m )

Definition at line 40 of file vector3d.cpp.

 Math::Vector3d::Matrix ( const float * data )

Definition at line 44 of file vector3d.cpp.

## Member Function Documentation

 static Angle Math::Matrix< 3, 1 >::angle ( const Vector3d & v1, const Vector3d & v2 ) ` [inline, static]`

Find the angle between two vectors.

Parameters:
 v1 The first vector v2 The second vector
Returns:
The computed angle

Definition at line 84 of file vector3d.h.

 static Vector3d Math::Matrix< 3, 1 >::crossProduct ( const Vector3d & v1, const Vector3d & v2 ) ` [inline, static]`

Find the cross product between two vectors.

Parameters:
 v1 The first vector v2 The second vector
Returns:
The resulting cross product

Definition at line 72 of file vector3d.h.

 void Math::Vector3d::set ( float lx, float ly, float lz )

Set the value of the vector using three floats.

Parameters:
 lx X Value ly Y Value lz Z Value

Definition at line 48 of file vector3d.cpp.

 Angle Math::Vector3d::unitCircleAngle ( ) const

Get the angle of this vector around the unit circle This operation ignores the z-component.

Returns:
The computed angle

Definition at line 54 of file vector3d.cpp.

 float Math::Matrix< 3, 1 >::x ( ) const` [inline]`

Definition at line 40 of file vector3d.h.

 float& Math::Matrix< 3, 1 >::x ( ) ` [inline]`

Definition at line 39 of file vector3d.h.

 float& Math::Matrix< 3, 1 >::y ( ) ` [inline]`

Definition at line 41 of file vector3d.h.

 float Math::Matrix< 3, 1 >::y ( ) const` [inline]`

Definition at line 42 of file vector3d.h.

 float Math::Matrix< 3, 1 >::z ( ) const` [inline]`

Definition at line 44 of file vector3d.h.

 float& Math::Matrix< 3, 1 >::z ( ) ` [inline]`

Definition at line 43 of file vector3d.h.

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

Generated on Sat Sep 12 2020 05:05:04 for ResidualVM by 1.7.1  