vsg: vsg::t_vec3< T > Struct Template Reference

vsg 1.1.8 VulkanSceneGraph library

Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
vsg::t_vec3< T > Struct Template Reference

t_vec3 template class that represents a 3D vector More...

`#include <vec3.h>`

## Public Types
using | value_type = T

## Public Member Functions
constexpr | t_vec3 (const t_vec3 &v)
constexpr t_vec3 & | operator= (const t_vec3 &)=default
constexpr | t_vec3 (value_type in_x, value_type in_y, value_type in_z)
template<typename R >
constexpr | t_vec3 (const t_vec2< R > &v, value_type in_z)
template<typename R >
constexpr | t_vec3 (const t_vec3< R > &v)
constexpr std::size_t | size () const
value_type & | operator[] (std::size_t i)
value_type | operator[] (std::size_t i) const
template<typename R >
t_vec3 & | operator= (const t_vec3< R > &rhs)
T * | data ()
const T * | data () const
void | set (value_type in_x, value_type in_y, value_type in_z)
t_vec3 & | operator+= (const t_vec3 &rhs)
t_vec3 & | operator-= (const t_vec3 &rhs)
t_vec3 & | operator*= (value_type rhs)
t_vec3 & | operator*= (const t_vec3 &rhs)
t_vec3 & | operator/= (value_type rhs)
| operator bool () const noexcept

## Public Attributes
union { |
value_type value [3] |
struct { |
value_type x |
value_type y |
value_type z |
} |  |
struct { |
value_type r |
value_type g |
value_type b |
} |  |
struct { |
value_type s |
value_type t |
value_type p |
} |  |
}; |  |

## Detailed Description

template<typename T>
struct vsg::t_vec3< T >

t_vec3 template class that represents a 3D vector

The documentation for this struct was generated from the following file:

- include/vsg/maths/vec3.h