Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::gfx::Vertex3 Struct Reference

3D Vertex More...

#include <Structs.h>

Public Member Functions

 Vertex3 ()
 Vertex3 (float x, float y, float z)
void Transform4 (math::Matrix *mat)
void Transform3 (math::Matrix *mat)
Vertex3 operator- (const Vertex3 &o) const
Vertex3 operator+ (const Vertex3 &o) const
Vertex3 operator* (const float &f) const
void Normalize ()
kge::math::Vector ToVector ()
void Cross (const Vertex3 &v1, const Vertex3 &v2)

Public Attributes

float X
float Y
float Z

Detailed Description

3D Vertex

Az Vertex baraye moshakhas kardane noghat to faza estefade mishe.

Definition at line 52 of file Structs.h.

Constructor & Destructor Documentation

kge::gfx::Vertex3::Vertex3 ( )
inline

Definition at line 58 of file Structs.h.

kge::gfx::Vertex3::Vertex3 ( float  x,
float  y,
float  z 
)
inline

Definition at line 60 of file Structs.h.

Member Function Documentation

void kge::gfx::Vertex3::Cross ( const Vertex3 v1,
const Vertex3 v2 
)
inline

Definition at line 163 of file Structs.h.

References X, Y, and Z.

void kge::gfx::Vertex3::Normalize ( )
inline

Definition at line 142 of file Structs.h.

References X, Y, and Z.

Referenced by kge::gfx::CalcTangent(), and kge::gfx::RecalculateNormals_Smooth().

Vertex3 kge::gfx::Vertex3::operator* ( const float &  f) const
inline

Definition at line 122 of file Structs.h.

References X, Y, and Z.

Vertex3 kge::gfx::Vertex3::operator+ ( const Vertex3 o) const
inline

Definition at line 112 of file Structs.h.

References X, Y, and Z.

Vertex3 kge::gfx::Vertex3::operator- ( const Vertex3 o) const
inline

Definition at line 102 of file Structs.h.

References X, Y, and Z.

kge::math::Vector kge::gfx::Vertex3::ToVector ( )
inline

Definition at line 153 of file Structs.h.

References kge::math::Vector::x, X, kge::math::Vector::y, Y, kge::math::Vector::z, and Z.

Referenced by kge::math::Triangle::IntersectRay().

void kge::gfx::Vertex3::Transform3 ( math::Matrix mat)
inline

Definition at line 85 of file Structs.h.

References kge::math::Matrix::m_fMat, X, Y, and Z.

void kge::gfx::Vertex3::Transform4 ( math::Matrix mat)
inline

Harekat va charkheshe noghte tavasote matrix.

Parameters
matMatrixe havi etelaate charkhesh va rotate.

Definition at line 65 of file Structs.h.

References kge::math::Matrix::m_fMat, X, Y, and Z.

Member Data Documentation

float kge::gfx::Vertex3::X
float kge::gfx::Vertex3::Y
float kge::gfx::Vertex3::Z

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