SOFUS ..
Public Member Functions | Static Public Attributes | List of all members
point_t< T > Struct Template Reference

Point type (aligned) More...

#include <smath_types.hpp>

Inheritance diagram for point_t< T >:
Inheritance graph
[legend]
Collaboration diagram for point_t< T >:
Collaboration graph
[legend]

Public Member Functions

 point_t ()=default
 
 point_t (const T &a, const T &b, const T &c)
 
 point_t (std::initializer_list< T > args)
 
point_t< T > & operator+= (const point_t< T > &other)
 

Static Public Attributes

static const point_t xaxis = point_t<T>(T(1.0), T(0.0), T(0.0))
 x-axis More...
 
static const point_t yaxis = point_t<T>(T(0.0), T(1.0), T(0.0))
 y-axis More...
 
static const point_t zaxis = point_t<T>(T(0.0), T(0.0), T(1.0))
 z-axis More...
 

Detailed Description

template<typename T>
struct sps::point_t< T >

Point type (aligned)

Point as an aligned array

Constructor & Destructor Documentation

◆ point_t() [1/3]

point_t ( )
default

◆ point_t() [2/3]

point_t ( const T &  a,
const T &  b,
const T &  c 
)
inline

◆ point_t() [3/3]

point_t ( std::initializer_list< T >  args)
inline
Todo:
: Not good if called using a list of length 3

Member Function Documentation

◆ operator+=()

point_t< T > & operator+= ( const point_t< T > &  other)
inline

Member Data Documentation

◆ xaxis

const point_t< T > xaxis = point_t<T>(T(1.0), T(0.0), T(0.0))
static

x-axis

◆ yaxis

const point_t< T > yaxis = point_t<T>(T(0.0), T(1.0), T(0.0))
static

y-axis

◆ zaxis

const point_t< T > zaxis = point_t<T>(T(0.0), T(0.0), T(1.0))
static

z-axis


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