C++ wrapper for tpbrt_vec3_t.
More...
#include <tinypbrt/detail/cpp/math.hpp>
|
| constexpr float_t | x () const noexcept |
| | Returns x value.
|
| |
| constexpr float_t | r () const noexcept |
| | Returns r value.
|
| |
| constexpr float_t | y () const noexcept |
| | Returns y value.
|
| |
| constexpr float_t | g () const noexcept |
| | Returns g value.
|
| |
| constexpr float_t | z () const noexcept |
| | Returns z value.
|
| |
| constexpr float_t | b () const noexcept |
| | Returns b value.
|
| |
| constexpr auto | reflect () const noexcept |
| | Conversion to tuple.
|
| |
| constexpr size_t | size () const noexcept |
| | Returns size of this array.
|
| |
| constexpr bool_t | empty () const noexcept |
| | Returns true if array is empty.
|
| |
| constexpr const native_element_type * | data () const noexcept |
| | Returns pointer to the C data.
|
| |
| constexpr span_type | to_span () const noexcept |
| | Returns std::span over the C data.
|
| |
| constexpr iterator | begin () const noexcept |
| | Returns begin iterator.
|
| |
| constexpr iterator | end () const noexcept |
| | Returns end iterator.
|
| |
| constexpr reference | operator[] (const size_t index) const noexcept |
| | Returns element on given index (unchecked, like std::span).
|
| |
| constexpr result< element_type > | at (const size_t index) const noexcept |
| | Returns element on given index or error::INDEX_OUT_OF_RANGE.
|
| |
| constexpr reference | front () const noexcept |
| | Returns first element (unchecked).
|
| |
| constexpr reference | back () const noexcept |
| | Returns last element (unchecked).
|
| |
| constexpr auto | operator<=> (const array &rhs) const noexcept |
| | Three-way comparison operator (compares elements).
|
| |
| constexpr bool_t | operator== (const array &rhs) const noexcept |
| | Equality operator (compares elements).
|
| |
|
| using | traits = detail::array_traits< Native, DataField > |
| | Array traits.
|
| |
| using | native_element_type = traits::native_element_type |
| | Native C library array element type.
|
| |
| using | element_type = std::conditional_t< std::is_void_v< Element >, native_element_type, Element > |
| | C++ array view element type.
|
| |
| using | value_type = element_type |
| | Value type (as in std::span).
|
| |
| using | span_type = traits::span_type |
| | std::span type of this array.
|
| |
| using | iterator = std::conditional_t< IsIdentity, typename span_type::iterator, detail::converting_iterator< native_element_type, element_type > > |
| | Iterator type.
|
| |
| using | reference = std::conditional_t< IsIdentity, const native_element_type &, element_type > |
| | Type returned by operator[] (a reference for identity arrays, a converted value otherwise).
|
| |
| static constexpr size_t | length () noexcept |
| | Returns vec length.
|
| |
| static constexpr size_t | Length |
| | Vec length.
|
| |
| static constexpr size_t | Extent = traits::Extent |
| | Array static size.
|
| |
| static constexpr bool_t | IsIdentity = std::is_same_v<native_element_type, element_type> |
| | True when elements are returned without conversion (as references to the C data).
|
| |
| constexpr span_type | _raw_span () const noexcept |
| | Returns std::span over the C data.
|
| |
C++ wrapper for tpbrt_vec3_t.
◆ x()
| constexpr float_t tpbrt::vec3::x |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ r()
| constexpr float_t tpbrt::vec3::r |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ y()
| constexpr float_t tpbrt::vec3::y |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ g()
| constexpr float_t tpbrt::vec3::g |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ z()
| constexpr float_t tpbrt::vec3::z |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ b()
| constexpr float_t tpbrt::vec3::b |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ reflect()
| constexpr auto tpbrt::vec3::reflect |
( |
| ) |
const |
|
inlineconstexprnoexcept |
The documentation for this struct was generated from the following file: