Carna  Version 3.3.2
Public Member Functions | Public Attributes | List of all members
Carna::base::VertexPosition Struct Reference

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

#include <Vertex.h>

+ Inheritance diagram for Carna::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
Date
9.6.21
Since
API Version 3.2.0

Definition at line 39 of file Vertex.h.

Constructor & Destructor Documentation

◆ VertexPosition()

Carna::base::VertexPosition::VertexPosition ( )

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

Member Function Documentation

◆ setPosition()

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

Sets the position vector.

Definition at line 68 of file Vertex.h.


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