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

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

#include <Vertex.hpp>

+ Inheritance diagram for LibCarna::base::VertexNormal:

Public Member Functions

 VertexNormal ()
 
template<typename VectorType >
void setNormal (const VectorType &normal)
 

Public Attributes

float nx
 Holds the normal vector x-component of this vertex.
 
float ny
 Holds the normal vector y-component of this vertex.
 
float nz
 Holds the normal vector z-component of this vertex.
 
float nw
 Holds the normal vector w-component of this vertex. This will be 0 usually.
 

Detailed Description

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

Author
Leonid Kostrykin

Definition at line 93 of file Vertex.hpp.

Constructor & Destructor Documentation

◆ VertexNormal()

LibCarna::base::VertexNormal::VertexNormal ( )

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

Member Function Documentation

◆ setNormal()

template<typename VectorType >
void LibCarna::base::VertexNormal::setNormal ( const VectorType normal)

Sets the normal vector.

Definition at line 122 of file Vertex.hpp.

Member Data Documentation

◆ nw

LibCarna::base::VertexNormal::nw

Holds the normal vector w-component of this vertex. This will be 0 usually.

Definition at line 108 of file Vertex.hpp.

◆ nx

LibCarna::base::VertexNormal::nx

Holds the normal vector x-component of this vertex.

Definition at line 108 of file Vertex.hpp.

◆ ny

LibCarna::base::VertexNormal::ny

Holds the normal vector y-component of this vertex.

Definition at line 108 of file Vertex.hpp.

◆ nz

LibCarna::base::VertexNormal::nz

Holds the normal vector z-component of this vertex.

Definition at line 108 of file Vertex.hpp.


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