tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
Loading...
Searching...
No Matches
Coordinates

Enumerations

enum class  tpbrt::coord_system_type : uchar_t { tpbrt::coord_system_type::CAMERA_WORLD = TPBRT_COORD_SYSTEM_TYPE_CAMERA_WORLD , tpbrt::coord_system_type::CAMERA = TPBRT_COORD_SYSTEM_TYPE_CAMERA , tpbrt::coord_system_type::WORLD = TPBRT_COORD_SYSTEM_TYPE_WORLD , tpbrt::coord_system_type::MAX_NUM = TPBRT_COORD_SYSTEM_TYPE_MAX_NUM }
 Coordinate System type. More...
 

Functions

constexpr std::string_view tpbrt::to_string (const coord_system_type type) noexcept
 Converts coord_system_type enum value to string.
 

Detailed Description

Enumeration Type Documentation

◆ coord_system_type

enum class tpbrt::coord_system_type : uchar_t
strong

Coordinate System type.

Enumerator
CAMERA_WORLD 

Translates the scene so that the camera is at the origin.

CAMERA 

Uses camera space (performance may suffer due to the scene being rotated).

WORLD 

Uses world space (accuracy may suffer due to floating-point precision).

MAX_NUM 

Count of available coordinate system types.

Function Documentation

◆ to_string()

constexpr std::string_view tpbrt::to_string ( const coord_system_type  type)
constexprnoexcept

Converts coord_system_type enum value to string.

Parameters
typeCoordinate system type.
Returns
String value of coordinate system type.