#include <xac_interface_scene_elements_doc.h>
Public Types | |
typedef Sample_info_surface | Base_info_type |
Declaration of the surface type info. More... | |
Public Member Functions | |
bool | is_valid () const |
Check if the properties of the current shape are valid. More... | |
uint | get_light_id () const |
Retrieve associated scene light id. More... | |
uint | get_material_id () const |
Retrieve associated scene material id. More... | |
const float3 & | get_center () const |
Get the sphere center position in scene space coordinates. More... | |
float | get_radius () const |
Get the scene space radius of the sphere. More... | |
bool | is_inside (const float3 &scene_position) const |
Check if a given position in scene space coordinates is inside the boundary surface. More... | |
float | get_distance (const float3 &scene_position) const |
Compute the signed distance to the boundary surface for a given position in scene space coordinates. More... | |
Declaration of the surface type info.
const float3 & nv::index::xac::Sphere::get_center | ( | ) | const |
Get the sphere center position in scene space coordinates.
float nv::index::xac::Sphere::get_distance | ( | const float3 & | scene_position | ) | const |
Compute the signed distance to the boundary surface for a given position in scene space coordinates.
uint nv::index::xac::Sphere::get_light_id | ( | ) | const |
Retrieve associated scene light id.
uint nv::index::xac::Sphere::get_material_id | ( | ) | const |
Retrieve associated scene material id.
float nv::index::xac::Sphere::get_radius | ( | ) | const |
Get the scene space radius of the sphere.
bool nv::index::xac::Sphere::is_inside | ( | const float3 & | scene_position | ) | const |
Check if a given position in scene space coordinates is inside the boundary surface.
bool nv::index::xac::Sphere::is_valid | ( | ) | const |
Check if the properties of the current shape are valid.