Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

3dsloader.cc File Reference

#include "3dsLoader.h"
#include <iostream>

Include dependency graph for 3dsloader.cc:

Include dependency graph

Go to the source code of this file.

Defines

#define MAG(Normal)   (sqrt(Normal.x*Normal.x + Normal.y*Normal.y + Normal.z*Normal.z))

Functions

tVector3 Vector (tVector3 vPoint1, tVector3 vPoint2)
tVector3 addVector (tVector3 vVector1, tVector3 vVector2)
tVector3 divideVectorByScaler (tVector3 vVector1, float scaler)
tVector3 cross (tVector3 vVector1, tVector3 vVector2)
tVector3 normalize (tVector3 vNormal)


Define Documentation

#define MAG Normal       (sqrt(Normal.x*Normal.x + Normal.y*Normal.y + Normal.z*Normal.z))
 

Definition at line 507 of file 3dsloader.cc.

Referenced by normalize().


Function Documentation

tVector3 addVector tVector3    vVector1,
tVector3    vVector2
 

This adds 2 vectors together and returns the result

Definition at line 527 of file 3dsloader.cc.

References tVector3::x, tVector3::y, and tVector3::z.

Referenced by CLoad3DS::computeNormals().

tVector3 cross tVector3    vVector1,
tVector3    vVector2
 

This returns the cross product between 2 vectors

Definition at line 555 of file 3dsloader.cc.

References tVector3::x, tVector3::y, and tVector3::z.

Referenced by CLoad3DS::computeNormals().

tVector3 divideVectorByScaler tVector3    vVector1,
float    scaler
 

This divides a vector by a single number (scalar) and returns the result

Definition at line 541 of file 3dsloader.cc.

References tVector3::x, tVector3::y, and tVector3::z.

Referenced by CLoad3DS::computeNormals().

tVector3 normalize tVector3    vNormal
 

This returns the normal of a vector

Definition at line 568 of file 3dsloader.cc.

References MAG, tVector3::x, tVector3::y, and tVector3::z.

Referenced by CLoad3DS::computeNormals().

tVector3 Vector tVector3    vPoint1,
tVector3    vPoint2
 

This calculates a vector between 2 points and returns the result

Definition at line 513 of file 3dsloader.cc.

References tVector3::x, tVector3::y, and tVector3::z.

Referenced by anoid::main::collisionCallback(), CLoad3DS::computeNormals(), anoid::context::GLContext::drawQuad(), anoid::context::GLContext::drawTriangle(), CollisionEvent::fire(), anoid::plugin::Acceleration::getAcceleration(), anoid::plugin::Gravitation::getApplicationPoint(), anoid::plugin::Color::getColor(), anoid::plugin::Gravitation::getForce(), anoid::plugin::Move::getMovement(), anoid::plugin::Position::getPosition(), anoid::plugin::Scale::getScale(), anoid::plugin::SpinVelocity::getSpinVelocity(), anoid::config::Configuration::getVector(), anoid::plugin::Velocity::getVelocity(), anoid::plugin::Box::init(), anoid::simple::operator *(), anoid::simple::operator%(), anoid::simple::operator+(), anoid::plugin::anoid::Pad::receive(), anoid::plugin::Dynamics::receive(), anoid::context::GLContext::scale(), anoid::plugin::Acceleration::setAcceleration(), anoid::plugin::Move::setMovement(), anoid::plugin::Move::setPosition(), anoid::plugin::SpinVelocity::setSpinVelocity(), anoid::plugin::Velocity::setVelocity(), anoid::context::GLContext::translate(), anoid::plugin::SpinVelocity::update(), anoid::plugin::Spin::update(), and anoid::plugin::Dynamics::update().


Anoid NG © Michael Westergaard, Martin Stig Stissing, Ronni Michael Laursen, and Kristian Bisgaard Lassen