![]() |
ʻOhana
Population structure, admixture history, and selection using learning methods.
|
A template for a class that implements rank-two vector operations. More...
#include <jade.vec2.hpp>
Public Types | |
typedef TValue | value_type |
The value type. More... | |
Public Member Functions | |
basic_vec2 () | |
Implements a new insatnce of the class. More... | |
basic_vec2 (const value_type x_, const value_type y_) | |
Implements a new insatnce of the class with the specified values. More... | |
value_type | get_length () const |
value_type | get_length_squared () const |
basic_vec2 & | operator+= (const basic_vec2 &rhs) |
basic_vec2 & | operator+= (const value_type &rhs) |
basic_vec2 & | operator-= (const basic_vec2 &rhs) |
basic_vec2 & | operator-= (const value_type &rhs) |
basic_vec2 & | operator*= (const value_type &rhs) |
basic_vec2 & | operator/= (const value_type &rhs) |
basic_vec2 | operator+ (const value_type &rhs) const |
basic_vec2 | operator+ (const basic_vec2 &rhs) const |
basic_vec2 | operator- (const value_type &rhs) const |
basic_vec2 | operator- (const basic_vec2 &rhs) const |
basic_vec2 | operator* (const value_type &rhs) const |
basic_vec2 | operator/ (const value_type &rhs) const |
Static Public Member Functions | |
static value_type | cross (const basic_vec2 &lhs, const basic_vec2 &rhs) |
static value_type | distance (const basic_vec2 &a, const basic_vec2 &b) |
static value_type | distance_squared (const basic_vec2 &a, const basic_vec2 &b) |
static basic_vec2 | dot (const basic_vec2 &a, const basic_vec2 &b) |
static basic_vec2 | lerp (const basic_vec2 &src, const basic_vec2 &dst, const value_type percent) |
static basic_vec2 | max (const basic_vec2 &a, const basic_vec2 &b) |
static basic_vec2 | min (const basic_vec2 &a, const basic_vec2 &b) |
static basic_vec2 | normalize (const basic_vec2 &v) |
Data Fields | |
value_type | x |
The X coordinate. More... | |
value_type | y |
The Y coordinate. More... | |
A template for a class that implements rank-two vector operations.
Definition at line 18 of file jade.vec2.hpp.
typedef TValue jade::basic_vec2< TValue >::value_type |
The value type.
Definition at line 21 of file jade.vec2.hpp.
|
inline |
Implements a new insatnce of the class.
Definition at line 29 of file jade.vec2.hpp.
|
inline |
Implements a new insatnce of the class with the specified values.
x_ | The initial X coordinate. |
y_ | The initial Y coordinate. |
Definition at line 38 of file jade.vec2.hpp.
|
inlinestatic |
lhs | The first vector. |
rhs | The second vector. |
Definition at line 49 of file jade.vec2.hpp.
|
inlinestatic |
a | The first vector. |
b | The second vector. |
Definition at line 59 of file jade.vec2.hpp.
|
inlinestatic |
a | The first vector. |
b | The second vector. |
Definition at line 69 of file jade.vec2.hpp.
|
inlinestatic |
a | The first vector. |
b | The second vector. |
Definition at line 79 of file jade.vec2.hpp.
|
inline |
Definition at line 89 of file jade.vec2.hpp.
|
inline |
|
inlinestatic |
src | The first vector. |
dst | The second vector. |
percent | The percentage. |
Definition at line 106 of file jade.vec2.hpp.
|
inlinestatic |
a | The first vector. |
b | The second vector. |
Definition at line 117 of file jade.vec2.hpp.
|
inlinestatic |
a | The first vector. |
b | The second vector. |
Definition at line 127 of file jade.vec2.hpp.
|
inlinestatic |
v | The vector. |
Definition at line 137 of file jade.vec2.hpp.
|
inline |
rhs | The right operand. |
Definition at line 252 of file jade.vec2.hpp.
|
inline |
rhs | The right operand. |
Definition at line 190 of file jade.vec2.hpp.
|
inline |
rhs | The right operand. |
Definition at line 222 of file jade.vec2.hpp.
|
inline |
rhs | The right operand. |
Definition at line 212 of file jade.vec2.hpp.
|
inline |
rhs | The right operand. |
Definition at line 146 of file jade.vec2.hpp.
|
inline |
rhs | The right operand. |
Definition at line 157 of file jade.vec2.hpp.
|
inline |
rhs | The right operand. |
Definition at line 242 of file jade.vec2.hpp.
|
inline |
rhs | The right operand. |
Definition at line 232 of file jade.vec2.hpp.
|
inline |
rhs | The right operand. |
Definition at line 168 of file jade.vec2.hpp.
|
inline |
rhs | The right operand. |
Definition at line 179 of file jade.vec2.hpp.
|
inline |
rhs | The right operand. |
Definition at line 262 of file jade.vec2.hpp.
|
inline |
rhs | The right operand. |
Definition at line 201 of file jade.vec2.hpp.
value_type jade::basic_vec2< TValue >::x |
The X coordinate.
Definition at line 23 of file jade.vec2.hpp.
value_type jade::basic_vec2< TValue >::y |
The Y coordinate.
Definition at line 24 of file jade.vec2.hpp.