2#ifndef _TINYPBRT_TRANSFORM_HPP_
3#define _TINYPBRT_TRANSFORM_HPP_
24 struct transform_handle : detail::wrapper<transform_handle, tpbrt_transform_handle_t> {
26 using wrapper::wrapper;
41 using wrapper::wrapper;
67 using array::operator[];
71 return detail::find_in<element_type, tpbrt_mat4_t>(
tpbrt_get_transform, _native, handle.native());
86 return list.at(handle);
Definition accelerator.hpp:14
Generic C++ array view with type conversion (a non owning view on memory owned by the C library).
Definition common.hpp:448
constexpr result< element_type > at(const size_t index) const noexcept
Returns element on given index or error::INDEX_OUT_OF_RANGE.
Definition common.hpp:519
Result of an operation: either a value or an error code (similar to C++23 std::expected).
Definition error.hpp:165