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 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 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(), x, y, and z.

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, y, and z.

◆ 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 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

float mrpt::math::TPoint3Df::x {.0f}

◆ y

float mrpt::math::TPoint3Df::y {.0f}

Definition at line 28 of file TPoint3D.h.

Referenced by mrpt::maps::CPointCloudFilterByDistance::filter(), mrpt::opengl::CFrustum::getBoundingBox(), mrpt::opengl::COctreePointRenderer< Derived >::TNode::getCornerY(), mrpt::opengl::gl_utils::getCurrentRenderingInfo(), mrpt::maps::CPointsMap::insertAnotherMap(), mrpt::maps::COctoMapBase< octomap::OcTree, octomap::OcTreeNode >::internal_build_PointCloud_for_observation(), mrpt::maps::CColouredOctoMap::internal_insertObservation(), mrpt::opengl::COctreePointRenderer< CPointCloudColoured >::internal_recursive_split(), operator*(), operator+=(), operator[](), mrpt::opengl::CPointCloud::PLY_export_get_vertex(), mrpt::opengl::CPointCloudColoured::PLY_export_get_vertex(), mrpt::maps::CPointsMapXYZI::PLY_export_get_vertex(), mrpt::maps::CColouredPointsMap::PLY_export_get_vertex(), mrpt::maps::CPointsMap::PLY_export_get_vertex(), mrpt::opengl::CPointCloud::PLY_import_set_vertex(), mrpt::opengl::CPointCloudColoured::PLY_import_set_vertex(), mrpt::maps::CPointsMapXYZI::PLY_import_set_vertex(), mrpt::maps::CColouredPointsMap::PLY_import_set_vertex(), mrpt::maps::CPointsMap::PLY_import_set_vertex(), mrpt::opengl::CFrustum::render_dl(), mrpt::opengl::gl_utils::renderTriangleWithNormal(), mrpt::opengl::PLY_Exporter::saveToPlyFile(), mrpt::opengl::COctreePointRenderer< Derived >::TNode::setBBFromOrderInParent(), mrpt::math::TPoint3D::TPoint3D(), mrpt::opengl::COctreePointRenderer< Derived >::TNode::update_bb(), and velodyne_scan_to_pointcloud().

◆ z

float mrpt::math::TPoint3Df::z {.0f}

Definition at line 28 of file TPoint3D.h.

Referenced by mrpt::maps::CPointCloudFilterByDistance::filter(), mrpt::opengl::CFrustum::getBoundingBox(), mrpt::opengl::COctreePointRenderer< Derived >::TNode::getCornerZ(), mrpt::opengl::gl_utils::getCurrentRenderingInfo(), mrpt::maps::CPointsMap::insertAnotherMap(), mrpt::maps::COctoMapBase< octomap::OcTree, octomap::OcTreeNode >::internal_build_PointCloud_for_observation(), mrpt::maps::CColouredOctoMap::internal_insertObservation(), mrpt::opengl::COctreePointRenderer< CPointCloudColoured >::internal_recursive_split(), operator*(), operator+=(), operator[](), mrpt::opengl::CPointCloud::PLY_export_get_vertex(), mrpt::opengl::CPointCloudColoured::PLY_export_get_vertex(), mrpt::maps::CPointsMapXYZI::PLY_export_get_vertex(), mrpt::maps::CColouredPointsMap::PLY_export_get_vertex(), mrpt::maps::CPointsMap::PLY_export_get_vertex(), mrpt::opengl::CPointCloud::PLY_import_set_vertex(), mrpt::opengl::CPointCloudColoured::PLY_import_set_vertex(), mrpt::maps::CPointsMapXYZI::PLY_import_set_vertex(), mrpt::maps::CColouredPointsMap::PLY_import_set_vertex(), mrpt::maps::CPointsMap::PLY_import_set_vertex(), mrpt::opengl::CFrustum::render_dl(), mrpt::opengl::gl_utils::renderTriangleWithNormal(), mrpt::opengl::PLY_Exporter::saveToPlyFile(), mrpt::opengl::COctreePointRenderer< Derived >::TNode::setBBFromOrderInParent(), mrpt::math::TPoint3D::TPoint3D(), mrpt::opengl::COctreePointRenderer< Derived >::TNode::update_bb(), and velodyne_scan_to_pointcloud().




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7e629e01a Sat Dec 14 00:05:55 2019 +0100 at sáb dic 14 00:15:10 CET 2019