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

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

#include <Vertex.h>

+ Inheritance diagram for Carna::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
Date
1.9.14 - 10.3.15

Definition at line 88 of file Vertex.h.

Constructor & Destructor Documentation

◆ VertexNormal()

Carna::base::VertexNormal::VertexNormal ( )

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

Member Function Documentation

◆ setNormal()

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

Sets the normal vector.

Since
API Version 3.2.0

Definition at line 119 of file Vertex.h.

Member Data Documentation

◆ nw

Carna::base::VertexNormal::nw

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

Definition at line 103 of file Vertex.h.

◆ nx

Carna::base::VertexNormal::nx

Holds the normal vector x-component of this vertex.

Definition at line 103 of file Vertex.h.

◆ ny

Carna::base::VertexNormal::ny

Holds the normal vector y-component of this vertex.

Definition at line 103 of file Vertex.h.

◆ nz

Carna::base::VertexNormal::nz

Holds the normal vector z-component of this vertex.

Definition at line 103 of file Vertex.h.


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