ElfPSP_AntColony
Protein Structure Prediction using Ant Colony Optimization
|
Represents a triple (x, y, z) of any type. More...
#include <vec3.h>
Public Member Functions | |
vec3 () | |
Internal coordinates are not initialized and may contain junk. More... | |
vec3 (T a, T b, T c) | |
Example v = vec3(1, 2, 3) . More... | |
vec3 (std::initializer_list< T > l) | |
Example v = {1, 2, 3} . More... | |
vec3< T > | operator+ (const vec3< T > other) const |
Element-wise sum. More... | |
vec3< T > | operator- (const vec3< T > other) const |
Element-wise subtraction. More... | |
vec3< T > | operator- () const |
Unary minus operation. More... | |
bool | operator== (const vec3< T > other) const |
Returns true if both vectors have equal coordinates. More... | |
T | dot (const vec3< T > other) const |
Returns the dot product of two vectors. More... | |
T | dot () const |
Returns the dot product of the vector with itself. More... | |
T | norm1 () const |
Returns the norm1 of the vector (absolute value norm). More... | |
T | norm2 () const |
Returns the euclidean norm of the vector. More... | |
Public Attributes | |
T | x |
(x,y,z) coordinates. More... | |
T | y |
(x,y,z) coordinates. More... | |
T | z |
(x,y,z) coordinates. More... | |
Represents a triple (x, y, z) of any type.
Internal coordinates are not initialized and may contain junk.
Example v = vec3(1, 2, 3)
.
Returns the dot product of two vectors.
|
inline |
Returns the dot product of the vector with itself.
|
inline |
Returns the norm1 of the vector (absolute value norm).
|
inline |
Returns the euclidean norm of the vector.
TODO: There is something wrong here.
If T is int, an int should be returned?
Element-wise sum.
Element-wise subtraction.
Unary minus operation.
Returns the opposite vector.
Returns true if both vectors have equal coordinates.
T vec3< T >::x |
(x,y,z) coordinates.
T vec3< T >::y |
(x,y,z) coordinates.
T vec3< T >::z |
(x,y,z) coordinates.