Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
quadtree.cpp File Reference
#include "quadtree.h"
#include "matrix.h"
#include "aux_texture.h"
#include "universe.h"
#include "vegastrike.h"
#include "vs_globals.h"

Go to the source code of this file.

Functions

Vector calculatenormscale (const Matrix &trans)
 

Variables

const GFXVertex InitialVertices [4]
 

Function Documentation

Vector calculatenormscale ( const Matrix trans)
inline

Definition at line 186 of file quadtree.cpp.

References Matrix::getP(), Matrix::getQ(), Matrix::getR(), Magnitude(), and Vector.

Referenced by QuadTree::SetTransformation().

187 {
188  return Vector( 1.0F/( Vector( trans.getP() ).Magnitude() ), 1.0F/( Vector( trans.getQ() ).Magnitude() ), 1.0F
189  /( Vector( trans.getR() ).Magnitude() ) );
190 }

Variable Documentation

const GFXVertex InitialVertices[4]
Initial value:
= {
GFXVertex( Vector( 0, 0, 0 ), Vector( 0, 1, 0 ), 0, 0 ),
GFXVertex( Vector( 0, 0, 0 ), Vector( 0, 1, 0 ), 0, 0 ),
GFXVertex( Vector( 0, 0, 0 ), Vector( 0, 1, 0 ), 0, 0 ),
GFXVertex( Vector( 0, 0, 0 ), Vector( 0, 1, 0 ), 0, 0 )
}

Definition at line 8 of file quadtree.cpp.