Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | Public Member Functions | Public Attributes
mrpt::math::TPoint3Df Struct Reference

Detailed Description

Lightweight 3D point (float version).

See also
mrpt::poses::CPoint3D, mrpt::math::TPoint3D

Definition at line 315 of file lightweight_geom_data.h.

#include <mrpt/math/lightweight_geom_data.h>

Inheritance diagram for mrpt::math::TPoint3Df:
Inheritance graph

Public Types

enum  { static_size = 3 }
 

Public Member Functions

 TPoint3Df ()
 
constexpr TPoint3Df (const float xx, const float yy, const float zz)
 
TPoint3Dfoperator+= (const TPoint3Df &p)
 
TPoint3Df operator* (const float s)
 
float & operator[] (size_t i)
 Coordinate access using operator[]. More...
 
constexpr const float & operator[] (size_t i) const
 Coordinate access using operator[]. More...
 

Public Attributes

float x
 
float y
 
float z
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
static_size 

Definition at line 317 of file lightweight_geom_data.h.

Constructor & Destructor Documentation

◆ TPoint3Df() [1/2]

mrpt::math::TPoint3Df::TPoint3Df ( )
inline

Definition at line 325 of file lightweight_geom_data.h.

Referenced by operator*().

◆ TPoint3Df() [2/2]

constexpr mrpt::math::TPoint3Df::TPoint3Df ( const float  xx,
const float  yy,
const float  zz 
)
inlineconstexpr

Definition at line 326 of file lightweight_geom_data.h.

Member Function Documentation

◆ operator*()

TPoint3Df mrpt::math::TPoint3Df::operator* ( const float  s)
inline

Definition at line 337 of file lightweight_geom_data.h.

References TPoint3Df().

◆ operator+=()

TPoint3Df& mrpt::math::TPoint3Df::operator+= ( const TPoint3Df p)
inline

Definition at line 330 of file lightweight_geom_data.h.

References x.

◆ operator[]() [1/2]

float& mrpt::math::TPoint3Df::operator[] ( size_t  i)
inline

Coordinate access using operator[].

Order: x,y,z

Definition at line 342 of file lightweight_geom_data.h.

References x, y, and z.

◆ operator[]() [2/2]

constexpr const float& mrpt::math::TPoint3Df::operator[] ( size_t  i) const
inlineconstexpr

Coordinate access using operator[].

Order: x,y,z

Definition at line 358 of file lightweight_geom_data.h.

References x, y, and z.

Member Data Documentation

◆ x

float mrpt::math::TPoint3Df::x

◆ y

float mrpt::math::TPoint3Df::y

◆ z

float mrpt::math::TPoint3Df::z



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST