LibCarna Version 3.4.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
LibCarna::base::VertexPosition Struct Reference

Defines vertex component for position vectors. Usage is explained here. More...

#include <Vertex.hpp>

+ Inheritance diagram for LibCarna::base::VertexPosition:

Public Member Functions

 VertexPosition ()
 
template<typename VectorType >
void setPosition (const VectorType &position)
 

Public Attributes

float x
 Holds the positional x-component of this vertex.
 
float y
 Holds the positional y-component of this vertex.
 
float z
 Holds the positional z-component of this vertex.
 
float w
 Holds the positional w-component of this vertex. This will be 1 usually.
 

Detailed Description

Defines vertex component for position vectors. Usage is explained here.

Author
Leonid Kostrykin

Definition at line 45 of file Vertex.hpp.

Constructor & Destructor Documentation

◆ VertexPosition()

LibCarna::base::VertexPosition::VertexPosition ( )

Initializes to \( \left( 0, 0, 0, 1 \right) \).

Member Function Documentation

◆ setPosition()

template<typename VectorType >
void LibCarna::base::VertexPosition::setPosition ( const VectorType position)

Sets the position vector.

Definition at line 74 of file Vertex.hpp.

Member Data Documentation

◆ w

LibCarna::base::VertexPosition::w

Holds the positional w-component of this vertex. This will be 1 usually.

Definition at line 60 of file Vertex.hpp.

◆ x

LibCarna::base::VertexPosition::x

Holds the positional x-component of this vertex.

Definition at line 60 of file Vertex.hpp.

◆ y

LibCarna::base::VertexPosition::y

Holds the positional y-component of this vertex.

Definition at line 60 of file Vertex.hpp.

◆ z

LibCarna::base::VertexPosition::z

Holds the positional z-component of this vertex.

Definition at line 60 of file Vertex.hpp.


The documentation for this struct was generated from the following file: