sculpto
|
#include <vec3.h>
Public Member Functions | |
T | SetX (T X) |
T | SetY (T Y) |
T | SetZ (T Z) |
T | GetX () const |
T | GetY () const |
T | GetZ () const |
vec3 ()=default | |
vec3 (T A) | |
vec3 (T X, T Y, T Z) | |
vec3 (vec2< T > V, T Z) | |
vec3 (T X, vec2< T > V) | |
vec3 (const vec3 &Other) | |
vec3 & | operator= (const vec3 &Other) |
T | Length2 () const |
T | Length () const |
T | Distacnce (const vec3 &Other) const |
vec3 | Normalized () const |
vec3 & | Normalize () |
T | Dot (const vec3 &Other) const |
vec3 | Cross (const vec3 &Other) const |
bool | operator== (const vec3 &Other) const |
const vec3 | operator- () const |
const vec3 | operator+ (const vec3 &Other) const |
const vec3 & | operator+= (const vec3 &Other) |
const vec3 | operator+ (float Scalar) const |
const vec3 & | operator+= (float Scalar) |
const vec3 | operator- (const vec3 &Other) const |
const vec3 & | operator-= (const vec3 &Other) |
const vec3 | operator- (float Scalar) const |
const vec3 & | operator-= (float Scalar) |
const vec3 | operator* (const vec3 &Other) const |
const vec3 & | operator*= (const vec3 &Other) |
const vec3 | operator* (float Scalar) const |
const vec3 & | operator*= (float Scalar) |
const vec3 | operator/ (const vec3 &Other) const |
const vec3 & | operator/= (const vec3 &Other) |
const vec3 | operator/ (float Scalar) const |
const vec3 & | operator/= (float Scalar) |
operator T* () | |
T & | operator[] (int Index) |
T | operator[] (int Index) const |
Static Public Member Functions | |
static vec3 | Zero () |
static vec3 | Rnd (T Min=0, T Max=1) |
static vec3 | Min (const vec3 &A, const vec3 &B) |
static vec3 | Max (const vec3 &A, const vec3 &B) |
Public Attributes | |
T | X { 0 } |
T | Y { 0 } |
T | Z { 0 } |
Friends | |
template<typename T > | |
class | matr4 |
|
default |
Vector construcotrs.
Default construcotr. All coodinates would ve set to zero.
|
inlineexplicit |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
Other | - vector to multiply |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
A,B | - vectors to take minimums of components. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
T scl::math::vec3< T >::X { 0 } |
T scl::math::vec3< T >::Y { 0 } |
T scl::math::vec3< T >::Z { 0 } |