Rerun C++ SDK
Loading...
Searching...
No Matches
rerun::components::Radius Struct Reference

Component: The radius of something, e.g. More...

#include <rerun/components/radius.hpp>

Public Member Functions

 Radius (rerun::datatypes::Float32 value_)
 
Radiusoperator= (rerun::datatypes::Float32 value_)
 
 Radius (float value_)
 
Radiusoperator= (float value_)
 
 operator rerun::datatypes::Float32 () const
 Cast to the underlying Float32 datatype.
 

Static Public Member Functions

static Radius scene_units (float radius_in_scene_units)
 Creates a new radius in scene units.
 
static Radius ui_points (float radius_in_ui_points)
 Creates a new radius in ui points.
 

Public Attributes

rerun::datatypes::Float32 value
 

Detailed Description

Component: The radius of something, e.g.

a point.

Internally, positive values indicate scene units, whereas negative values are interpreted as UI points.

UI points are independent of zooming in Views, but are sensitive to the application UI scaling. at 100% UI scaling, UI points are equal to pixels The Viewer's UI scaling defaults to the OS scaling which typically is 100% for full HD screens and 200% for 4k screens.

Member Function Documentation

◆ scene_units()

static Radius rerun::components::Radius::scene_units ( float  radius_in_scene_units)
inlinestatic

Creates a new radius in scene units.

Values passed must be finite positive.

◆ ui_points()

static Radius rerun::components::Radius::ui_points ( float  radius_in_ui_points)
inlinestatic

Creates a new radius in ui points.

Values passed must be finite positive.


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