| Bsoft 2.0.5 Bernard's software package

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)
template<typename T2 >
| Vector3 (const vector< T2 > &v)
Vector3 | operator= (const Type d)
Vector3 | operator= (const Vector3 &v)
template<typename T2 >
Vector3 | operator= (const vector< T2 > &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)
bool | operator> (const Vector3 &v)
bool | operator< (const Vector3 &v)
bool | operator>= (const Vector3 &v)
bool | operator<= (const Vector3 &v)
Type | operator[] (size_t i) const
Type & | operator[] (size_t i)
template<typename T2 >
| operator Vector3< T2 > () const
vector< double > | array ()
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 ()
void | length (double d)
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

## ◆ Vector3() [1/4]

template<typename Type>

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

Definition at line 31 of file Vector3.h.

## ◆ Vector3() [2/4]

template<typename Type>

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

Definition at line 32 of file Vector3.h.

## ◆ Vector3() [3/4]

template<typename Type>

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

Definition at line 33 of file Vector3.h.

## ◆ Vector3() [4/4]

template<typename Type>
template<typename T2 >

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

Definition at line 35 of file Vector3.h.

## Member Function Documentation

## ◆ abs()

template<typename Type>

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

Definition at line 201 of file Vector3.h.

## ◆ angle()

template<typename Type>
template<typename T2 >

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

Definition at line 257 of file Vector3.h.

## ◆ array()

template<typename Type>

vector<double> Vector3< Type >::array | ( |  | ) |
| inline

Definition at line 166 of file Vector3.h.

## ◆ cross()

template<typename Type>

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

Definition at line 250 of file Vector3.h.

## ◆ distance()

template<typename Type>

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

Definition at line 227 of file Vector3.h.

## ◆ distance2()

template<typename Type>

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

Definition at line 228 of file Vector3.h.

## ◆ floor()

template<typename Type>

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

Definition at line 206 of file Vector3.h.

## ◆ length() [1/2]

template<typename Type>

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

Definition at line 222 of file Vector3.h.

## ◆ length() [2/2]

template<typename Type>

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

Definition at line 223 of file Vector3.h.

## ◆ length2()

template<typename Type>

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

Definition at line 221 of file Vector3.h.

## ◆ max() [1/3]

template<typename Type>

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

Definition at line 175 of file Vector3.h.

## ◆ max() [2/3]

template<typename Type>

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

Definition at line 186 of file Vector3.h.

## ◆ max() [3/3]

template<typename Type>

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

Definition at line 196 of file Vector3.h.

## ◆ min() [1/3]

template<typename Type>

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

Definition at line 169 of file Vector3.h.

## ◆ min() [2/3]

template<typename Type>

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

Definition at line 181 of file Vector3.h.

## ◆ min() [3/3]

template<typename Type>

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

Definition at line 191 of file Vector3.h.

## ◆ normal()

template<typename Type>

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

Definition at line 267 of file Vector3.h.

## ◆ normalize()

template<typename Type>

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

Definition at line 236 of file Vector3.h.

## ◆ notfinite()

template<typename Type>

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

Definition at line 274 of file Vector3.h.

## ◆ operator *() [1/2]

template<typename Type>

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

Definition at line 86 of file Vector3.h.

## ◆ operator *() [2/2]

template<typename Type>

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

Definition at line 94 of file Vector3.h.

## ◆ operator *=() [1/2]

template<typename Type>

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

Definition at line 82 of file Vector3.h.

## ◆ operator *=() [2/2]

template<typename Type>

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

Definition at line 90 of file Vector3.h.

## ◆ operator Vector3< T2 >()

template<typename Type>
template<typename T2 >

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

Definition at line 163 of file Vector3.h.

## ◆ operator!=()

template<typename Type>

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

Definition at line 126 of file Vector3.h.

## ◆ operator+() [1/2]

template<typename Type>

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

Definition at line 54 of file Vector3.h.

## ◆ operator+() [2/2]

template<typename Type>

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

Definition at line 62 of file Vector3.h.

## ◆ operator+=() [1/2]

template<typename Type>

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

Definition at line 50 of file Vector3.h.

## ◆ operator+=() [2/2]

template<typename Type>

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

Definition at line 58 of file Vector3.h.

## ◆ operator-() [1/3]

template<typename Type>

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

Definition at line 46 of file Vector3.h.

## ◆ operator-() [2/3]

template<typename Type>

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

Definition at line 70 of file Vector3.h.

## ◆ operator-() [3/3]

template<typename Type>

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

Definition at line 78 of file Vector3.h.

## ◆ operator-=() [1/2]

template<typename Type>

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

Definition at line 66 of file Vector3.h.

## ◆ operator-=() [2/2]

template<typename Type>

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

Definition at line 74 of file Vector3.h.

## ◆ operator/() [1/2]

template<typename Type>

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

Definition at line 104 of file Vector3.h.

## ◆ operator/() [2/2]

template<typename Type>

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

Definition at line 112 of file Vector3.h.

## ◆ operator/=() [1/2]

template<typename Type>

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

Definition at line 98 of file Vector3.h.

## ◆ operator/=() [2/2]

template<typename Type>

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

Definition at line 108 of file Vector3.h.

## ◆ operator<() [1/2]

template<typename Type>

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

Definition at line 136 of file Vector3.h.

## ◆ operator<() [2/2]

template<typename Type>

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

Definition at line 146 of file Vector3.h.

## ◆ operator<=()

template<typename Type>

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

Definition at line 156 of file Vector3.h.

## ◆ operator=() [1/3]

template<typename Type>

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

Definition at line 36 of file Vector3.h.

## ◆ operator=() [2/3]

template<typename Type>

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

Definition at line 37 of file Vector3.h.

## ◆ operator=() [3/3]

template<typename Type>
template<typename T2 >

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

Definition at line 42 of file Vector3.h.

## ◆ operator==() [1/2]

template<typename Type>

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

Definition at line 116 of file Vector3.h.

## ◆ operator==() [2/2]

template<typename Type>

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

Definition at line 121 of file Vector3.h.

## ◆ operator>() [1/2]

template<typename Type>

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

Definition at line 131 of file Vector3.h.

## ◆ operator>() [2/2]

template<typename Type>

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

Definition at line 141 of file Vector3.h.

## ◆ operator>=()

template<typename Type>

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

Definition at line 151 of file Vector3.h.

## ◆ operator[]() [1/2]

template<typename Type>

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

Definition at line 161 of file Vector3.h.

## ◆ operator[]() [2/2]

template<typename Type>

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

Definition at line 162 of file Vector3.h.

## ◆ remainder()

template<typename Type>

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

Definition at line 216 of file Vector3.h.

## ◆ round()

template<typename Type>

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

Definition at line 211 of file Vector3.h.

## ◆ scalar()

template<typename Type>

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

Definition at line 247 of file Vector3.h.

## ◆ square_root()

template<typename Type>

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

Definition at line 229 of file Vector3.h.

## ◆ sum()

template<typename Type>

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

Definition at line 234 of file Vector3.h.

## ◆ volume()

template<typename Type>

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

Definition at line 235 of file Vector3.h.

## ◆ within()

template<typename Type>

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

Definition at line 279 of file Vector3.h.

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

- /Users/bernard/b20/bsoft/include/Quaternion.h
- /Users/bernard/b20/bsoft/include/Vector3.h