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

Component: Half-sizes (extents) of a 2D box along its local axis, starting at its local origin/center. More...

#include <rerun/components/half_sizes2d.hpp>

Public Member Functions

 HalfSizes2D (float x, float y)
 Construct HalfSizes2D from x/y values.
 
float x () const
 
float y () const
 
 HalfSizes2D (rerun::datatypes::Vec2D xy_)
 
HalfSizes2Doperator= (rerun::datatypes::Vec2D xy_)
 
 HalfSizes2D (std::array< float, 2 > xy_)
 
HalfSizes2Doperator= (std::array< float, 2 > xy_)
 
 operator rerun::datatypes::Vec2D () const
 Cast to the underlying Vec2D datatype.
 

Public Attributes

rerun::datatypes::Vec2D xy
 

Detailed Description

Component: Half-sizes (extents) of a 2D box along its local axis, starting at its local origin/center.

The box extends both in negative and positive direction along each axis. Negative sizes indicate that the box is flipped along the respective axis, but this has no effect on how it is displayed.


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