neuray API Programmer's Manual

Internal Storage Class for Math Vector

[Math Vector Class]

Description

Storage class for math vectors with support for x, y, z, and w members for appropriate dimensions. Use the mi::math::Vector template in your programs and this storage class only if you need a POD type, for example for parameter passing.

Include File:

#include <mi/math/vector.h>

Classes

struct 
Specialization for dimension 1 to create x member. More...
struct 
Specialization for dimension 2 to create x and y member. More...
struct 
Specialization for dimension 3 to create x, y, and z members. More...
struct 
Specialization for dimension 4 to create x, y, z, and w members. More...
struct 
Generic storage class template for math vector representations storing DIM elements of type T. More...

Functions

template< typename T, Size>T* mi::math::vector_base_ptr( Vector_struct < T , DIM >& vec)
Returns the base pointer to the vector data.
template< typename T, Size>const T* mi::math::vector_base_ptr( const Vector_struct < T , DIM >& vec)
Returns the base pointer to the vector data.
template< typename T>T* mi::math::vector_base_ptr( Vector_struct < T , 1 >& vec)
Returns the base pointer to the vector data, specialization for DIM==1.
template< typename T>const T* mi::math::vector_base_ptr( const Vector_struct < T , 1 >& vec)
Returns the base pointer to the vector data, specialization for DIM==1.
template< typename T>T* mi::math::vector_base_ptr( Vector_struct < T , 2 >& vec)
Returns the base pointer to the vector data, specialization for DIM==2.
template< typename T>const T* mi::math::vector_base_ptr( const Vector_struct < T , 2 >& vec)
Returns the base pointer to the vector data, specialization for DIM==2.
template< typename T>T* mi::math::vector_base_ptr( Vector_struct < T , 3 >& vec)
Returns the base pointer to the vector data, specialization for DIM==3.
template< typename T>const T* mi::math::vector_base_ptr( const Vector_struct < T , 3 >& vec)
Returns the base pointer to the vector data, specialization for DIM==3.
template< typename T>T* mi::math::vector_base_ptr( Vector_struct < T , 4 >& vec)
Returns the base pointer to the vector data, specialization for DIM==4.
template< typename T>const T* mi::math::vector_base_ptr( const Vector_struct < T , 4 >& vec)
Returns the base pointer to the vector data, specialization for DIM==4.

Functions

template< typename T, Size>

T* mi::math::vector_base_ptr( Vector_struct < T , DIM >& vec) [inline]

Returns the base pointer to the vector data.

template< typename T, Size>

const T* mi::math::vector_base_ptr( const Vector_struct < T , DIM >& vec) [inline]

Returns the base pointer to the vector data.

template< typename T>

T* mi::math::vector_base_ptr( Vector_struct < T , 1 >& vec) [inline]

Returns the base pointer to the vector data, specialization for DIM==1.

template< typename T>

const T* mi::math::vector_base_ptr( const Vector_struct < T , 1 >& vec) [inline]

Returns the base pointer to the vector data, specialization for DIM==1.

template< typename T>

T* mi::math::vector_base_ptr( Vector_struct < T , 2 >& vec) [inline]

Returns the base pointer to the vector data, specialization for DIM==2.

template< typename T>

const T* mi::math::vector_base_ptr( const Vector_struct < T , 2 >& vec) [inline]

Returns the base pointer to the vector data, specialization for DIM==2.

template< typename T>

T* mi::math::vector_base_ptr( Vector_struct < T , 3 >& vec) [inline]

Returns the base pointer to the vector data, specialization for DIM==3.

template< typename T>

const T* mi::math::vector_base_ptr( const Vector_struct < T , 3 >& vec) [inline]

Returns the base pointer to the vector data, specialization for DIM==3.

template< typename T>

T* mi::math::vector_base_ptr( Vector_struct < T , 4 >& vec) [inline]

Returns the base pointer to the vector data, specialization for DIM==4.

template< typename T>

const T* mi::math::vector_base_ptr( const Vector_struct < T , 4 >& vec) [inline]

Returns the base pointer to the vector data, specialization for DIM==4.