NormalStruct Struct Reference

#include <operatingsystem.h>

详细描述

Holds Normal tag variable coordinates data.

另请参阅
NormalTag

Constructors

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

Vertex Normals

向量   a
向量   b
向量   c
向量   d

Get/Set Vertex Normals

向量 operator[] ( Int32 index) const

构造函数 & 析构函数文档编制

◆  NormalStruct() [1/3]

NormalStruct ( )

Default constructor.

◆  NormalStruct() [2/3]

NormalStruct ( _DONTCONSTRUCT   dc )
explicit

Creates an empty vertex normal variable without constructing the vectors.

参数
[in] dc Dummy argument. Pass DC.

◆  NormalStruct() [3/3]

NormalStruct ( const 向量 t_a ,
const 向量 t_b ,
const 向量 t_c ,
const 向量 t_d  
)

Fills the vertex normals.

参数
[in] t_a The vertex normal for the first point.
[in] t_b The vertex normal for the second point.
[in] t_c The vertex normal for the third point.
[in] t_d The vertex normal for the fourth point.

成员函数文档编制

◆  operator[]()

向量 & operator[] ( Int32   index ) const

Gets the vertex normal for the point at index .

参数
[in] index The 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.
返回
The vertex normal for the point at index .

Member Data Documentation

◆  a

向量 a

The vertex normal for the first point.

◆  b

向量 b

The vertex normal for the second point.

◆  c

向量 c

The vertex normal for the third point.

◆  d

向量 d

The vertex normal for the fourth point.