UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
Loading...
Searching...
No Matches
ufo::Intensity Struct Reference

Represents LiDAR/sensor return intensity as a single float value. More...

#include <lib/core/include/ufo/core/intensity.hpp>

Public Types

using value_type = float
 Underlying scalar type.
 

Public Member Functions

constexpr operator value_type () const noexcept
 Implicitly converts to the underlying scalar type.
 

Public Attributes

value_type intensity {}
 The raw intensity value.
 

Friends

constexpr auto operator<=> (Intensity lhs, Intensity rhs) noexcept=default
 Three-way comparison (total order on the underlying float).
 
constexpr bool operator== (Intensity lhs, Intensity rhs) noexcept=default
 Equality comparison.
 

Detailed Description

Represents LiDAR/sensor return intensity as a single float value.

Intensity is a lightweight, trivially-copyable value type with no overhead over a bare float. It is implicitly convertible to and from float, fully ordered via <=>, and supports std::ostream streaming and std::format.

Intended for use as a per-point attribute in a Cloud/PointCloud, where it can be stored as a separate SoA channel alongside position data.

Definition at line 66 of file intensity.hpp.

Member Typedef Documentation

◆ value_type

Underlying scalar type.

Definition at line 70 of file intensity.hpp.

Member Function Documentation

◆ operator value_type()

constexpr ufo::Intensity::operator value_type ( ) const
inlineconstexprnoexcept

Implicitly converts to the underlying scalar type.

Returns
The intensity value as a float.

Allows Intensity to be used wherever a float is expected.

Definition at line 84 of file intensity.hpp.

Friends And Related Symbol Documentation

◆ operator<=>

constexpr auto operator<=> ( Intensity  lhs,
Intensity  rhs 
)
friend

Three-way comparison (total order on the underlying float).

Parameters
[in]lhsLeft operand.
[in]rhsRight operand.
Returns
Comparison result.

◆ operator==

constexpr bool operator== ( Intensity  lhs,
Intensity  rhs 
)
friend

Equality comparison.

Parameters
[in]lhsLeft operand.
[in]rhsRight operand.
Returns
True if both intensity values are equal.

Member Data Documentation

◆ intensity

value_type ufo::Intensity::intensity {}

The raw intensity value.

Definition at line 75 of file intensity.hpp.


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