API Documentation
Loading...
Searching...
No Matches
Ray< t_dims, t_type, t_vector_type > Class Template Reference

#include <Vertex.hpp>

Inheritance diagram for Ray< t_dims, t_type, t_vector_type >:
[legend]
Collaboration diagram for Ray< t_dims, t_type, t_vector_type >:
[legend]

Public Member Functions

constexpr Ray ()
 
constexpr Ray (const t_type &scaler)
 
constexpr Ray (const t_vector_type &vector)
 
constexpr Ray (const Ray< t_dims, t_type, t_vector_type > &vector)
 
constexpr Ray (const t_type x, const t_type y)
 
constexpr Ray (t_type x, t_type y, t_type z)
 
constexpr Ray (const t_type x, const t_type y, const t_type z, const t_type w)
 
constexpr Ray (const t_type(&vector)[t_dims])
 
constexpr Ray (const Vector< getMax(t_dims - 1, 0), t_type > &vector, const t_type postfix)
 
constexpr Ray (const Vector< getMax(t_dims - 2, 0), t_type > &vector, const t_type postfix_a, const t_type postfix_b)
 
constexpr Ray (const t_type prefix, const Vector< t_dims - 1, t_type > &vector)
 
template<uint01 t_new_dim, class t_new_type , class t_new_vector = Vector<t_new_dim, t_new_type>>
constexpr Ray< t_new_dim, t_new_type, t_new_vector > as (t_new_type extra_fill_value=0) const
 
template<class t_new_type , class t_new_vector = Vector<t_dims, t_new_type>>
constexpr Ray< t_dims, t_new_type, t_new_vector > as () const
 
constexpr Ray scale (const t_vector_type &scale) const
 
constexpr Ray scale (const t_type scale) const
 
constexpr Ray< t_dims, t_type, t_vector_type > & operator= (const t_type &scaler)
 
constexpr Ray< t_dims, t_type, t_vector_type > & operator= (const t_vector_type &vector)
 
constexpr Ray< t_dims, t_type, t_vector_type > & operator= (const Ray< t_dims, t_type, t_vector_type > &vector)
 
- Public Member Functions inherited from Vector< t_dims, t_type >
constexpr Vector () noexcept
 
template<class t_vec_type >
constexpr Vector (const Vector< t_dims, t_vec_type > &vector) noexcept
 
constexpr Vector (const t_type &scaler) noexcept
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &x, typename std::enable_if< tdims==2, const t_type & >::type y)
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &x, const t_type &y, const typename std::enable_if< tdims==3, const t_type & >::type z)
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &x, const t_type &y, const t_type &z, typename std::enable_if< tdims==4, const t_type & >::type w)
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &x, const t_type &y, const t_type &z, const t_type &w, typename std::enable_if< tdims==5, const t_type & >::type v)
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &x, const t_type &y, const t_type &z, const t_type &w, const t_type &v, typename std::enable_if< tdims==6, const t_type & >::type u)
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &x, const t_type &y, const t_type &z, const t_type &w, const t_type &v, const t_type &u, const t_type &t, const t_type &s, typename std::enable_if< tdims==9, const t_type & >::type r)
 
constexpr Vector (const t_type(&vector)[t_dims])
 
template<uint01 tdims = t_dims>
constexpr Vector (const Vector< tdims - 1, t_type > &vector, typename std::enable_if< tdims >=2, const t_type & >::type suffix)
 
template<uint01 tdims = t_dims>
constexpr Vector (const Vector< getMax(tdims - 2, 0), t_type > &vector, const t_type &suffix_a, typename std::enable_if< tdims >=3, const t_type & >::type suffix_b)
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &prefix, typename std::enable_if< tdims >=2, const Vector< t_dims - 1, t_type > & >::type vector)
 
template<uint01 tdims = t_dims>
constexpr Vector (const t_type &prefix_a, const t_type &prefix_b, typename std::enable_if< tdims >=3, const Vector< tdims - 1, t_type > & >::type vector)
 
template<class t_new_type >
constexpr Vector< t_dims, t_new_type > as () const
 
template<uint01 t_new_dim, class t_new_type >
constexpr Vector< t_new_dim, t_new_type > as () const
 
template<uint01 t_new_dim, class t_new_type >
constexpr Vector< t_new_dim, t_new_type > as (t_new_type extra_fill_value) const
 
template<LocationValues t_max_min>
constexpr t_type dimensionalValue () const
 
template<LocationValues t_max_min>
constexpr uint01 dimensionalIndex () const
 
template<uint01 tdims = t_dims, typename = typename std::enable_if<tdims == 1>::type>
constexpr operator t_type & ()
 
template<uint01 tdims = t_dims, typename = typename std::enable_if<tdims == 1>::type>
constexpr operator const t_type & () const
 
constexpr t_type magnitudeSquared () const
 
template<class t_magnitude_type = t_type>
constexpr t_magnitude_type magnitude () const
 
template<class t_norm_type = t_type>
constexpr Vector< t_dims, t_norm_type > normalized (Vector< t_dims, t_norm_type > value_if_nan=Constant< Vector< t_dims, t_norm_type > >::NaN) const
 
constexpr t_type product () const
 
constexpr t_type sum () const
 
constexpr t_type & operator[] (uint01 dimension_index)
 
constexpr const t_type & operator[] (const uint01 dimension_index) const
 
constexpr Vector< t_dims, t_type > operator- () const
 
constexpr Vector< t_dims, t_type > & operator= (const t_type &scaler)
 

Additional Inherited Members

- Static Public Member Functions inherited from Vector< t_dims, t_type >
static constexpr uint01 NumberOfDimensions ()
 
static constexpr t_type Type ()
 
- Protected Attributes inherited from Vector< t_dims, t_type >
t_type m_values [t_dims]
 

Detailed Description

template<uint01 t_dims, class t_type, class t_vector_type = Vector<t_dims, t_type>>
class NDEVR::Ray< t_dims, t_type, t_vector_type >

Class: Normal

A vertex.

Author: Tyler Parke

Date: 2017-11-19

Constructor & Destructor Documentation

◆ Ray() [1/11]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray ( )
inlineconstexpr

◆ Ray() [2/11]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray ( const t_type & scaler)
inlineexplicitconstexpr

◆ Ray() [3/11]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray ( const t_vector_type & vector)
inlineconstexpr

◆ Ray() [4/11]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray ( const Ray< t_dims, t_type, t_vector_type > & vector)
inlineconstexpr

◆ Ray() [5/11]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray ( const t_type x,
const t_type y )
inlineconstexpr

◆ Ray() [6/11]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray ( t_type x,
t_type y,
t_type z )
inlineconstexpr

◆ Ray() [7/11]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray ( const t_type x,
const t_type y,
const t_type z,
const t_type w )
inlineconstexpr

◆ Ray() [8/11]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray ( const t_type(&) vector[t_dims])
inlineexplicitconstexpr

◆ Ray() [9/11]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray ( const Vector< getMax(t_dims - 1, 0), t_type > & vector,
const t_type postfix )
inlineconstexpr

◆ Ray() [10/11]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray ( const Vector< getMax(t_dims - 2, 0), t_type > & vector,
const t_type postfix_a,
const t_type postfix_b )
inlineconstexpr

◆ Ray() [11/11]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray ( const t_type prefix,
const Vector< t_dims - 1, t_type > & vector )
inlineconstexpr

Member Function Documentation

◆ as() [1/2]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
template<class t_new_type , class t_new_vector = Vector<t_dims, t_new_type>>
Ray< t_dims, t_new_type, t_new_vector > as ( ) const
inlineconstexpr

◆ as() [2/2]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
template<uint01 t_new_dim, class t_new_type , class t_new_vector = Vector<t_new_dim, t_new_type>>
Ray< t_new_dim, t_new_type, t_new_vector > as ( t_new_type extra_fill_value = 0) const
inlineconstexpr

Fn: constexpr Vertex<t_new_dim, t_new_type, t_new_vector> Vertex::as(t_new_type extra_fill_value = 0) const

As the given extra fill value.

Author: Tyler Parke

Date: 2017-11-19

Parameters: extra_fill_value - (Optional) The extra fill value.

Returns: A Vertex<t_new_dim,t_new_type,t_new_vector>

◆ operator=() [1/3]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray< t_dims, t_type, t_vector_type > & operator= ( const Ray< t_dims, t_type, t_vector_type > & vector)
inlineconstexpr

◆ operator=() [2/3]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray< t_dims, t_type, t_vector_type > & operator= ( const t_type & scaler)
inlineconstexpr

Fn: constexpr Vertex<t_dims, t_type, t_vector_type>& Vertex::operator=(const t_type& scaler)

Assignment operator.

Author: Tyler Parke

Date: 2017-11-19

Parameters: scaler - The scaler.

Returns: A copy of this object.

◆ operator=() [3/3]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray< t_dims, t_type, t_vector_type > & operator= ( const t_vector_type & vector)
inlineconstexpr

Fn: constexpr Vertex<t_dims, t_type, t_vector_type>& Vertex::operator=(const t_vector_type& vector)

Assignment operator.

Author: Tyler Parke

Date: 2017-11-19

Parameters: vector - The vector.

Returns: A copy of this object.

◆ scale() [1/2]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray scale ( const t_type scale) const
inlineconstexpr

Fn: constexpr Vertex Vertex::scale(const t_type scale, const Vertex<t_dims, t_type>& center) const

Scales.

Author: Tyler Parke

Date: 2017-11-19

Parameters: scale - The scale. center - The center.

Returns: A Vertex.

◆ scale() [2/2]

template<uint01 t_dims, class t_type , class t_vector_type = Vector<t_dims, t_type>>
Ray scale ( const t_vector_type & scale) const
inlineconstexpr

Fn: constexpr Vertex Vertex::scale(const t_vector_type& scale, const Vertex<t_dims, t_type>& center) const

Scales.

Author: Tyler Parke

Date: 2017-11-19

Parameters: scale - The scale. center - The center.

Returns: A Vertex.


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