Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
bvh::v2::Vec< T, N > Struct Template Reference

template<typename T, size_t N>
struct bvh::v2::Vec< T, N >

Definition at line 14 of file vec.h.

Public Member Functions

 Vec ()=default
BVH_ALWAYS_INLINE Vec (T x)
template<typename... Args>
BVH_ALWAYS_INLINE Vec (T x, T y, Args &&... args)
template<typename Compare>
BVH_ALWAYS_INLINE size_t get_best_axis (Compare &&compare) const
BVH_ALWAYS_INLINE size_t get_largest_axis () const
BVH_ALWAYS_INLINE size_t get_smallest_axis () const
BVH_ALWAYS_INLINE T & operator[] (size_t i)
BVH_ALWAYS_INLINEoperator[] (size_t i) const

Static Public Member Functions

template<typename F>
static BVH_ALWAYS_INLINE Vec< T, Ngenerate (F &&f)

Public Attributes

values [N]

#include <bvh/v2/vec.h>

Constructor & Destructor Documentation

◆ Vec() [1/3]

template<typename T, size_t N>
bvh::v2::Vec< T, N >::Vec ( )
default

◆ Vec() [2/3]

template<typename T, size_t N>
template<typename... Args>
BVH_ALWAYS_INLINE bvh::v2::Vec< T, N >::Vec ( T x,
T y,
Args &&... args )
inline

Definition at line 19 of file vec.h.

◆ Vec() [3/3]

template<typename T, size_t N>
BVH_ALWAYS_INLINE bvh::v2::Vec< T, N >::Vec ( T x)
inlineexplicit

Definition at line 20 of file vec.h.

Member Function Documentation

◆ generate()

template<typename T, size_t N>
template<typename F>
BVH_ALWAYS_INLINE Vec< T, N > bvh::v2::Vec< T, N >::generate ( F && f)
inlinestatic

Definition at line 40 of file vec.h.

◆ get_best_axis()

template<typename T, size_t N>
template<typename Compare>
BVH_ALWAYS_INLINE size_t bvh::v2::Vec< T, N >::get_best_axis ( Compare && compare) const
inline

Definition at line 23 of file vec.h.

◆ get_largest_axis()

template<typename T, size_t N>
BVH_ALWAYS_INLINE size_t bvh::v2::Vec< T, N >::get_largest_axis ( ) const
inline

Definition at line 33 of file vec.h.

◆ get_smallest_axis()

template<typename T, size_t N>
BVH_ALWAYS_INLINE size_t bvh::v2::Vec< T, N >::get_smallest_axis ( ) const
inline

Definition at line 34 of file vec.h.

◆ operator[]() [1/2]

template<typename T, size_t N>
BVH_ALWAYS_INLINE T & bvh::v2::Vec< T, N >::operator[] ( size_t i)
inline

Definition at line 36 of file vec.h.

◆ operator[]() [2/2]

template<typename T, size_t N>
BVH_ALWAYS_INLINE T bvh::v2::Vec< T, N >::operator[] ( size_t i) const
inline

Definition at line 37 of file vec.h.

Member Data Documentation

◆ values

template<typename T, size_t N>
T bvh::v2::Vec< T, N >::values[N]

Definition at line 15 of file vec.h.


The documentation for this struct was generated from the following file:
  • geom/geom/inc/bvh/v2/vec.h