AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
VMAP::ModelPosition Class Reference

#include "TileAssembler.h"

Public Member Functions

 ModelPosition ()
 
void init ()
 
G3D::Vector3 transform (const G3D::Vector3 &pIn) const
 
void moveToBasePos (const G3D::Vector3 &pBasePos)
 

Public Attributes

G3D::Vector3 iPos
 
G3D::Vector3 iDir
 
float iScale {0.0f}
 

Private Attributes

G3D::Matrix3 iRotation
 

Detailed Description

This Class is used to convert raw vector data into balanced BSP-Trees. To start the conversion call convertWorld().

Constructor & Destructor Documentation

◆ ModelPosition()

VMAP::ModelPosition::ModelPosition ( )
inline
42{ }

Member Function Documentation

◆ init()

void VMAP::ModelPosition::init ( )
inline
47 {
48 iRotation = G3D::Matrix3::fromEulerAnglesZYX(G3D::pif() * iDir.y / 180.f, G3D::pif() * iDir.x / 180.f, G3D::pif() * iDir.z / 180.f);
49 }
G3D::Vector3 iDir
Definition: TileAssembler.h:44
G3D::Matrix3 iRotation
Definition: TileAssembler.h:40

References iDir, and iRotation.

Referenced by VMAP::TileAssembler::calculateTransformedBound().

◆ moveToBasePos()

void VMAP::ModelPosition::moveToBasePos ( const G3D::Vector3 &  pBasePos)
inline
51{ iPos -= pBasePos; }
G3D::Vector3 iPos
Definition: TileAssembler.h:43

References iPos.

◆ transform()

Vector3 VMAP::ModelPosition::transform ( const G3D::Vector3 &  pIn) const
47 {
48 Vector3 out = pIn * iScale;
49 out = iRotation * out;
50 return (out);
51 }
float iScale
Definition: TileAssembler.h:45

References iRotation, and iScale.

Referenced by VMAP::TileAssembler::calculateTransformedBound().

Member Data Documentation

◆ iDir

G3D::Vector3 VMAP::ModelPosition::iDir

◆ iPos

G3D::Vector3 VMAP::ModelPosition::iPos

Referenced by moveToBasePos().

◆ iRotation

G3D::Matrix3 VMAP::ModelPosition::iRotation
private

Referenced by init(), and transform().

◆ iScale

float VMAP::ModelPosition::iScale {0.0f}