Helios++
Helios software for LiDAR simulations
|
Class representing a vertex. More...
#include <Vertex.h>
Public Member Functions | |
Vertex ()=default | |
Default vertex constructor. | |
Vertex (const Vertex &v) | |
Vertex | copy () |
Copy the vertex. More... | |
double | getX () const |
Get the X coordinate of vertex position. More... | |
double | getY () const |
Get the Y coordinate of vertex position. More... | |
double | getZ () const |
Get the Z coordinate of vertex position. More... | |
bool | operator== (const Vertex &v) const |
Compare if two vertex are equal. More... | |
Static Public Member Functions | |
static double * | matxvec (double **mat, double *vec) |
Matrix x Vector multiplication. More... | |
static Vertex | rotateVertex (Vertex v, double **rotationMatrix) |
Build a vertes result of rotating another vertex (v) More... | |
Public Attributes | |
glm::dvec3 | pos |
Vertex 3D position. | |
glm::dvec3 | normal |
Vertex normal vector. | |
glm::dvec2 | texcoords |
Vertex texture coordinates. | |
Color4f | color |
Vertex color (RGBA) More... | |
Private Member Functions | |
template<typename Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Friends | |
class | boost::serialization::access |
std::ostream & | operator<< (std::ostream &out, Vertex *v) |
Class representing a vertex.
Vertex Vertex::copy | ( | ) |
Copy the vertex.
|
inline |
|
inline |
|
inline |
|
static |
Matrix x Vector multiplication.
mat | Matrix to multiply |
vec | Vector to multiply |
|
inline |
Compare if two vertex are equal.
Two vertex are considered to be equal when their positions are exactly the same
v | Vertex to compare with |
Build a vertes result of rotating another vertex (v)
v | Vertex to rotate |
rotationMatrix | Matrix defining rotation to be applied |