Vector3D.hpp File Reference
#include <etk/types.hpp>
#include <cmath>

Go to the source code of this file.

Classes

class  etk::Vector3D< T >
 
class  etk::Vector3D< T >
 

Namespaces

 etk
 

Typedefs

typedef etk::Vector3D< float > btVector3
 
using vec3 = etk::Vector3D< float >
 
using ovec3 = etk::Vector3D< float >
 
using ivec3 = etk::Vector3D< int32_t >
 
using uivec3 = etk::Vector3D< uint32_t >
 
using bvec3 = etk::Vector3D< bool >
 

Functions

vec3 vec3ClipInt32 (const vec3 &_val)
 
vec3 vec3ClipInt64 (const vec3 &_val)
 

Detailed Description

Author
Edouard DUPIN
Note
License: APACHE v2.0 (see license file)

Typedef Documentation

§ btVector3

typedef etk::Vector3D<float> btVector3

compatibility with bullet lib

§ bvec3

using bvec3 = etk::Vector3D<bool>

wrapper on etk::Vector3D<bool> to have the same naming has OpenGL shader

§ ivec3

using ivec3 = etk::Vector3D<int32_t>

wrapper on etk::Vector3D<int32_t> to have the same naming has OpenGL shader

§ ovec3

using ovec3 = etk::Vector3D<float>

wrapper on etk::Vector3D<float> to be complient all time with openGL internal mode (instead of vec3)

§ uivec3

using uivec3 = etk::Vector3D<uint32_t>

wrapper on etk::Vector3D<uint32_t> to have the same naming has OpenGL shader

§ vec3

using vec3 = etk::Vector3D<float>

wrapper on etk::Vector3D<float> to have the same naming has OpenGL shader

Function Documentation

§ vec3ClipInt32()

vec3 vec3ClipInt32 ( const vec3 _val)
inline

Limit at integer value the input vector: vec3(1.2, 5.6, -2.9) ==> vec3(1.0, 5.0, -2.0)

Parameters
_valinput vector to limit
Returns
reduced range of vector

§ vec3ClipInt64()

vec3 vec3ClipInt64 ( const vec3 _val)
inline

Limit at integer value the input vector: vec3(1.2, 5.6, -2.9) ==> vec3(1.0, 5.0, -2.0)

Parameters
_valinput vector to limit
Returns
reduced range of vector