structure for 3-dimensional real type vector and its arithmetic.
More...
#include <vec.h>
Definition at line 444 of file vec.h.
◆ vec3() [1/5]
◆ vec3() [2/5]
graphics::vec3::vec3 |
( |
real |
a | ) |
|
|
inline |
◆ vec3() [3/5]
◆ vec3() [4/5]
graphics::vec3::vec3 |
( |
const ivec3 & |
a | ) |
|
|
inline |
◆ vec3() [5/5]
graphics::vec3::vec3 |
( |
const vec3 & |
a | ) |
|
|
inline |
◆ is_parallel()
◆ is_perpendicular()
◆ is_tiny()
bool graphics::vec3::is_tiny |
( |
real |
tiny_tol = epsilon | ) |
const |
|
inline |
◆ is_zero()
bool graphics::vec3::is_zero |
( |
| ) |
const |
|
inline |
◆ length()
real graphics::vec3::length |
( |
| ) |
const |
◆ operator()() [1/2]
real& graphics::vec3::operator() |
( |
int |
i | ) |
|
|
inline |
◆ operator()() [2/2]
const real& graphics::vec3::operator() |
( |
int |
i | ) |
const |
|
inline |
◆ operator=()
vec3& graphics::vec3::operator= |
( |
const vec3 & |
a | ) |
|
|
inline |
◆ operator[]() [1/2]
real& graphics::vec3::operator[] |
( |
int |
i | ) |
|
|
inline |
◆ operator[]() [2/2]
const real& graphics::vec3::operator[] |
( |
int |
i | ) |
const |
|
inline |
◆ perpendicular() [1/2]
bool graphics::vec3::perpendicular |
( |
const vec3 & |
vv | ) |
|
◆ perpendicular() [2/2]
bool graphics::vec3::perpendicular |
( |
const vec3 & |
P0, |
|
|
const vec3 & |
P1, |
|
|
const vec3 & |
P2 |
|
) |
| |
◆ unit()
bool graphics::vec3::unit |
( |
| ) |
|
const int graphics::vec3::n = 3 |
|
static |
real graphics::vec3::v[3] |
The documentation for this struct was generated from the following files: