Blender V5.0
Spherical Struct Reference

Inherits CommonValues.

Static Public Member Functions

static float2 direction_to_sensor (const float3 &dir, const float fov, const float width, const float height)
static float3 sensor_to_direction (const float2 &sensor, const float fov, const float width, const float height)

Additional Inherited Members

Public Member Functions inherited from CommonValues
virtual double threshold () const
 Threshold for the reprojection error.
virtual bool skip_invalid () const
 If skip_invalid returns true, invalid unprojections are ignored in the test.

Detailed Description

Definition at line 241 of file kernel_camera_projection_test.cpp.

Member Function Documentation

◆ direction_to_sensor()

float2 Spherical::direction_to_sensor ( const float3 & dir,
const float fov,
const float width,
const float height )
inlinestatic

Definition at line 242 of file kernel_camera_projection_test.cpp.

References direction_to_spherical().

◆ sensor_to_direction()

float3 Spherical::sensor_to_direction ( const float2 & sensor,
const float fov,
const float width,
const float height )
inlinestatic

Definition at line 249 of file kernel_camera_projection_test.cpp.

References spherical_to_direction(), float2::x, and float2::y.


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