| Bsoft 1.9 Bernard's software package

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
Vector3< Type > Class Template Reference

Vector class for 3-value vectors used in 3D space. The internal variables are an array of 3 numbers. More...

`#include <Quaternion.h>`

## Public Member Functions
| Vector3 ()
| Vector3 (const Vector3 &v)
| Vector3 (const Type x, const Type y, const Type z)
Vector3 | operator= (const Type d)
Vector3 | operator= (const Vector3 &v)
Vector3 | operator- ()
Vector3 | operator+= (const double d)
Vector3 | operator+ (const double d)
Vector3 | operator+= (const Vector3 &v)
Vector3 | operator+ (const Vector3 &v)
Vector3 | operator-= (const double d)
Vector3 | operator- (const double d)
Vector3 | operator-= (const Vector3 &v)
Vector3 | operator- (const Vector3 &v)
Vector3 | operator*= (const double d)
Vector3 | operator* (const double d)
Vector3 | operator*= (const Vector3 &v)
Vector3 | operator* (const Vector3 &v)
Vector3 | operator/= (const double d)
Vector3 | operator/ (const double d)
Vector3 | operator/= (const Vector3 &v)
Vector3 | operator/ (const Vector3 &v)
bool | operator== (const Vector3 &v)
bool | operator== (const double d)
bool | operator!= (const Vector3 &v)
bool | operator> (const double d)
bool | operator< (const double d)
Type | operator[] (size_t i) const
Type & | operator[] (size_t i)
template<typename T2 >
| operator Vector3< T2 > () const
Type | x ()
Type | y ()
Type | z ()
void | x (const double d)
void | y (const double d)
void | z (const double d)
Type | min ()
Type | max ()
Vector3 | min (const double d)
Vector3 | max (const double d)
Vector3 | min (const Vector3 &v)
Vector3 | max (const Vector3 &v)
Vector3 | abs ()
Vector3 | floor (int places)
Vector3 | round (int places)
Vector3 | remainder (int divisor)
double | length2 ()
double | length ()
double | distance (const Vector3 &v)
double | distance2 (const Vector3 &v)
Vector3 | square_root ()
double | sum ()
double | volume ()
double | normalize ()
double | scalar (const Vector3 &v) const
Vector3 | cross (const Vector3 &v)
template<typename T2 >
double | angle (Vector3< T2 > &v)
Vector3 | normal (Vector3 &v1, Vector3 &v2)
bool | notfinite ()
bool | within (Vector3 &v1, Vector3 &v2)

## Detailed Description

### template<typename Type>
class Vector3< Type >

Vector class for 3-value vectors used in 3D space. The internal variables are an array of 3 numbers.

Definition at line 16 of file Quaternion.h.

## Constructor & Destructor Documentation

template<typename Type>

Vector3< Type >::Vector3 | ( |  | ) |
| inline

Definition at line 30 of file Vector3.h.

template<typename Type>

Vector3< Type >::Vector3 | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 31 of file Vector3.h.

template<typename Type>

Vector3< Type >::Vector3 | ( | const Type | x,
|  | const Type | y,
|  | const Type | z
| ) |  |
| inline

Definition at line 32 of file Vector3.h.

## Member Function Documentation

template<typename Type>

Vector3 Vector3< Type >::abs | ( |  | ) |
| inline

Definition at line 175 of file Vector3.h.

template<typename Type>
template<typename T2 >

double Vector3< Type >::angle | ( | Vector3< T2 > & | v | ) |
| inline

Definition at line 227 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::cross | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 220 of file Vector3.h.

template<typename Type>

double Vector3< Type >::distance | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 197 of file Vector3.h.

template<typename Type>

double Vector3< Type >::distance2 | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 198 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::floor | ( | int | places | ) |
| inline

Definition at line 180 of file Vector3.h.

template<typename Type>

double Vector3< Type >::length | ( |  | ) |
| inline

Definition at line 196 of file Vector3.h.

template<typename Type>

double Vector3< Type >::length2 | ( |  | ) |
| inline

Definition at line 195 of file Vector3.h.

template<typename Type>

Type Vector3< Type >::max | ( |  | ) |
| inline

Definition at line 149 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::max | ( | const double | d | ) |
| inline

Definition at line 160 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::max | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 170 of file Vector3.h.

template<typename Type>

Type Vector3< Type >::min | ( |  | ) |
| inline

Definition at line 143 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::min | ( | const double | d | ) |
| inline

Definition at line 155 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::min | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 165 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::normal | ( | Vector3< Type > & | v1,
|  | Vector3< Type > & | v2
| ) |  |
| inline

Definition at line 237 of file Vector3.h.

template<typename Type>

double Vector3< Type >::normalize | ( |  | ) |
| inline

Definition at line 206 of file Vector3.h.

template<typename Type>

bool Vector3< Type >::notfinite | ( |  | ) |
| inline

Definition at line 244 of file Vector3.h.

template<typename Type>
template<typename T2 >

Vector3< Type >::operator Vector3< T2 > | ( |  | ) | const
| inline

Definition at line 134 of file Vector3.h.

template<typename Type>

bool Vector3< Type >::operator!= | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 117 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator* | ( | const double | d | ) |
| inline

Definition at line 77 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator* | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 85 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator*= | ( | const double | d | ) |
| inline

Definition at line 73 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator*= | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 81 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator+ | ( | const double | d | ) |
| inline

Definition at line 45 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator+ | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 53 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator+= | ( | const double | d | ) |
| inline

Definition at line 41 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator+= | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 49 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator- | ( |  | ) |
| inline

Definition at line 37 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator- | ( | const double | d | ) |
| inline

Definition at line 61 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator- | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 69 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator-= | ( | const double | d | ) |
| inline

Definition at line 57 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator-= | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 65 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator/ | ( | const double | d | ) |
| inline

Definition at line 95 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator/ | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 103 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator/= | ( | const double | d | ) |
| inline

Definition at line 89 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator/= | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 99 of file Vector3.h.

template<typename Type>

bool Vector3< Type >::operator< | ( | const double | d | ) |
| inline

Definition at line 127 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator= | ( | const Type | d | ) |
| inline

Definition at line 33 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::operator= | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 34 of file Vector3.h.

template<typename Type>

bool Vector3< Type >::operator== | ( | const Vector3< Type > & | v | ) |
| inline

Definition at line 107 of file Vector3.h.

template<typename Type>

bool Vector3< Type >::operator== | ( | const double | d | ) |
| inline

Definition at line 112 of file Vector3.h.

template<typename Type>

bool Vector3< Type >::operator> | ( | const double | d | ) |
| inline

Definition at line 122 of file Vector3.h.

template<typename Type>

Type Vector3< Type >::operator[] | ( | size_t | i | ) | const
| inline

Definition at line 132 of file Vector3.h.

template<typename Type>

Type& Vector3< Type >::operator[] | ( | size_t | i | ) |
| inline

Definition at line 133 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::remainder | ( | int | divisor | ) |
| inline

Definition at line 190 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::round | ( | int | places | ) |
| inline

Definition at line 185 of file Vector3.h.

template<typename Type>

double Vector3< Type >::scalar | ( | const Vector3< Type > & | v | ) | const
| inline

Definition at line 217 of file Vector3.h.

template<typename Type>

Vector3 Vector3< Type >::square_root | ( |  | ) |
| inline

Definition at line 199 of file Vector3.h.

template<typename Type>

double Vector3< Type >::sum | ( |  | ) |
| inline

Definition at line 204 of file Vector3.h.

template<typename Type>

double Vector3< Type >::volume | ( |  | ) |
| inline

Definition at line 205 of file Vector3.h.

template<typename Type>

bool Vector3< Type >::within | ( | Vector3< Type > & | v1,
|  | Vector3< Type > & | v2
| ) |  |
| inline

Definition at line 249 of file Vector3.h.

template<typename Type>

Type Vector3< Type >::x | ( |  | ) |
| inline

Definition at line 137 of file Vector3.h.

template<typename Type>

void Vector3< Type >::x | ( | const double | d | ) |
| inline

Definition at line 140 of file Vector3.h.

template<typename Type>

Type Vector3< Type >::y | ( |  | ) |
| inline

Definition at line 138 of file Vector3.h.

template<typename Type>

void Vector3< Type >::y | ( | const double | d | ) |
| inline

Definition at line 141 of file Vector3.h.

template<typename Type>

Type Vector3< Type >::z | ( |  | ) |
| inline

Definition at line 139 of file Vector3.h.

template<typename Type>

void Vector3< Type >::z | ( | const double | d | ) |
| inline

Definition at line 142 of file Vector3.h.

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

- /usr/local/bsoft/include/Quaternion.h
- /usr/local/bsoft/include/Vector3.h