MRPT  1.9.9
mrpt::math::TPoint3Df Struct Reference

Detailed Description

Lightweight 3D point (float version).

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

Definition at line 21 of file TPoint3D.h.

#include <mrpt/math/TPoint3D.h>

Inheritance diagram for mrpt::math::TPoint3Df:

Public Types

enum  { static_size = 3 }
 

Public Member Functions

 TPoint3Df ()=default
 
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...
 
constexpr std::size_t rows () const
 
constexpr std::size_t cols () const
 
constexpr std::size_t size () const
 
void resize (std::size_t n)
 throws if attempted to resize to incorrect length More...
 

Public Attributes

float x {.0f}
 
float y {.0f}
 
float z {.0f}
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
static_size 

Definition at line 24 of file TPoint3D.h.

Constructor & Destructor Documentation

◆ TPoint3Df() [1/2]

mrpt::math::TPoint3Df::TPoint3Df ( )
default

Referenced by operator*().

Here is the caller graph for this function:

◆ TPoint3Df() [2/2]

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

Definition at line 31 of file TPoint3D.h.

Member Function Documentation

◆ cols()

constexpr std::size_t mrpt::math::internal::ProvideStaticResize< TPoint3Df >::cols ( ) const
inlineinherited

Definition at line 57 of file TPoseOrPoint.h.

◆ operator*()

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

Definition at line 42 of file TPoint3D.h.

References TPoint3Df().

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 35 of file TPoint3D.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 47 of file TPoint3D.h.

References x, y, and z.

◆ operator[]() [2/2]

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

Coordinate access using operator[].

Order: x,y,z

Definition at line 63 of file TPoint3D.h.

References x, y, and z.

◆ resize()

void mrpt::math::internal::ProvideStaticResize< TPoint3Df >::resize ( std::size_t  n)
inlineinherited

throws if attempted to resize to incorrect length

Definition at line 61 of file TPoseOrPoint.h.

◆ rows()

constexpr std::size_t mrpt::math::internal::ProvideStaticResize< TPoint3Df >::rows ( ) const
inlineinherited

Definition at line 56 of file TPoseOrPoint.h.

◆ size()

constexpr std::size_t mrpt::math::internal::ProvideStaticResize< TPoint3Df >::size ( ) const
inlineinherited

Definition at line 58 of file TPoseOrPoint.h.

Member Data Documentation

◆ x

◆ y

◆ z




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: e47402b84 Wed Oct 23 01:09:07 2019 +0200 at miƩ oct 23 01:10:13 CEST 2019