NormalStruct Struct Reference

#include <operatingsystem.h>

Detailed Description

Holds Normal tag variable coordinates data.

See also
NormalTag

Constructors

 NormalStruct ()
 
 NormalStruct (_DONTCONSTRUCT dc)
 
 NormalStruct (const Vector &t_a, const Vector &t_b, const Vector &t_c, const Vector &t_d)
 

Vertex Normals

Vector a
 
Vector b
 
Vector c
 
Vector d
 

Get/Set Vertex Normals

Vectoroperator[] (Int32 index) const
 

Constructor & Destructor Documentation

◆ NormalStruct() [1/3]

Default constructor.

◆ NormalStruct() [2/3]

NormalStruct ( _DONTCONSTRUCT  dc)
explicit

Creates an empty vertex normal variable without constructing the vectors.

Parameters
[in]dcDummy argument. Pass DC.

◆ NormalStruct() [3/3]

NormalStruct ( const Vector t_a,
const Vector t_b,
const Vector t_c,
const Vector t_d 
)

Fills the vertex normals.

Parameters
[in]t_aThe vertex normal for the first point.
[in]t_bThe vertex normal for the second point.
[in]t_cThe vertex normal for the third point.
[in]t_dThe vertex normal for the fourth point.

Member Function Documentation

◆ operator[]()

Vector& operator[] ( Int32  index) const

Gets the vertex normal for the point at index.

Parameters
[in]indexThe point index. 0 <= index < 3.
0 returns a, 1 returns b, 2 returns c and 3 returns d.
Any other value must not be used and will crash.
Returns
The vertex normal for the point at index.

Member Data Documentation

◆ a

Vector a

The vertex normal for the first point.

◆ b

Vector b

The vertex normal for the second point.

◆ c

Vector c

The vertex normal for the third point.

◆ d

Vector d

The vertex normal for the fourth point.