Skip to content

Class Argos::Vertex

ClassList > Argos > Vertex

Represents a single vertex in a 3D mesh. More...

  • #include <Vertex.h>

Public Functions

Type Name
Vertex (const Vector3D< double > & src)
Construct a vertex from a 3D position.
const Vector3D< double > & getPosition () const
Get the const position vector.
Vector3D< double > & getPosition ()
Get the mutable position vector.

Detailed Description

Wraps a Vector3D<double> to provide a distinct type for mesh vertices.

Public Functions Documentation

function Vertex

Construct a vertex from a 3D position.

Argos::Vertex::Vertex (
    const  Vector3D < double > & src
) 

Parameters:

  • src The 3D coordinates of the vertex.

function getPosition [1/2]

Get the const position vector.

const  Vector3D < double > & Argos::Vertex::getPosition () const

Returns:

Const reference to the internal 3D position.


function getPosition [2/2]

Get the mutable position vector.

Vector3D < double > & Argos::Vertex::getPosition () 

Returns:

Mutable reference to the internal 3D position.



The documentation for this class was generated from the following file include/mesh/Vertex.h