structure for 2-dimensional real type vector and its arithmetic.
More...
#include <vec.h>
Definition at line 22 of file vec.h.
◆ vec2() [1/5]
Definition at line 26 of file vec.h.
◆ vec2() [2/5]
graphics::vec2::vec2 |
( |
real |
a | ) |
|
|
inline |
Definition at line 27 of file vec.h.
◆ vec2() [3/5]
graphics::vec2::vec2 |
( |
real |
v_1, |
|
|
real |
v_2 |
|
) |
| |
|
inline |
Definition at line 32 of file vec.h.
◆ vec2() [4/5]
graphics::vec2::vec2 |
( |
const ivec2 & |
a | ) |
|
|
inline |
Definition at line 37 of file vec.h.
◆ vec2() [5/5]
graphics::vec2::vec2 |
( |
const vec2 & |
a | ) |
|
|
inline |
Definition at line 42 of file vec.h.
◆ is_parallel()
◆ is_perpendicular()
◆ is_tiny()
bool graphics::vec2::is_tiny |
( |
real |
tiny_tol = epsilon | ) |
const |
|
inline |
Definition at line 62 of file vec.h.
◆ is_zero()
bool graphics::vec2::is_zero |
( |
| ) |
const |
|
inline |
Definition at line 61 of file vec.h.
◆ length()
real graphics::vec2::length |
( |
| ) |
const |
◆ operator()() [1/2]
real& graphics::vec2::operator() |
( |
int |
i | ) |
|
|
inline |
Definition at line 55 of file vec.h.
◆ operator()() [2/2]
const real& graphics::vec2::operator() |
( |
int |
i | ) |
const |
|
inline |
Definition at line 56 of file vec.h.
◆ operator=()
vec2& graphics::vec2::operator= |
( |
const vec2 & |
a | ) |
|
|
inline |
Definition at line 47 of file vec.h.
◆ operator[]() [1/2]
real& graphics::vec2::operator[] |
( |
int |
i | ) |
|
|
inline |
Definition at line 53 of file vec.h.
◆ operator[]() [2/2]
const real& graphics::vec2::operator[] |
( |
int |
i | ) |
const |
|
inline |
Definition at line 54 of file vec.h.
◆ perpendicular() [1/2]
bool graphics::vec2::perpendicular |
( |
const vec2 & |
vv | ) |
|
◆ perpendicular() [2/2]
bool graphics::vec2::perpendicular |
( |
const vec2 & |
p, |
|
|
const vec2 & |
q |
|
) |
| |
◆ unit()
bool graphics::vec2::unit |
( |
| ) |
|
const int graphics::vec2::n = 2 |
|
static |
Definition at line 24 of file vec.h.
real graphics::vec2::v[2] |
Definition at line 23 of file vec.h.
The documentation for this struct was generated from the following files: