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

vector.hh File Reference

#include "point.hh"
#include <iostream>
#include <string>

Include dependency graph for vector.hh:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  anoid
namespace  anoid::simple

Functions

double * matMult (double *A, const double *B)
double * matAdd (double *A, const double *B)
double * transpose (double *A)
double * copyMatrix (double *A, double *B)
double * tilde (double *A, const anoid::simple::Vector v)


Function Documentation

double* copyMatrix double *    A,
double *    B
 

Definition at line 146 of file vector.cc.

Referenced by anoid::plugin::Spin::getOldRotation(), anoid::plugin::Dynamics::receive(), anoid::plugin::Spin::setRotation(), anoid::plugin::Spin::setSpin(), anoid::plugin::Spin::update(), and anoid::plugin::SpinVelocity::update().

double* matAdd double *    A,
const double *    B
 

Cheap-o matrix addition; adds two 4x4 matrices to each other; actually only the top left 3x3 matrices are added. The result, A+B is stored in the first matrix

Parameters:
A  matrix
B  matrix
Returns:
the result of the addition, A

Definition at line 132 of file vector.cc.

Referenced by anoid::plugin::Spin::update().

double* matMult double *    A,
const double *    B
 

Cheap-o matrix multiplication; multiplies two 4x4 matrices with each other; actually only the top left 3x3 matrices are multiplied. The result, AB is stored in the first matrix

Parameters:
A  matrix
B  matrix
Returns:
the result of the multiplication, A

Definition at line 105 of file vector.cc.

Referenced by anoid::plugin::SpinVelocity::update().

double* tilde double *    A,
const anoid::simple::Vector    v
 

Does the tilde operator of a vector and stores the result in the provided matrix. The result matrix is a 4x4 matrix

Parameters:
A  the matrix in which to store the result
v  the vector to "tilde"
Returns:
the tilded vector, A

Definition at line 185 of file vector.cc.

References anoid::simple::Point::getX(), anoid::simple::Point::getY(), and anoid::simple::Point::getZ().

Referenced by anoid::plugin::SpinVelocity::update().

double* transpose double *    A
 

Transposes the upper left 3x3 matrix of a 4x4 matrix and returns the matrix in A

Parameters:
A  the matrix to transpose
Returns:
the transposed matrix, A

Definition at line 167 of file vector.cc.

Referenced by anoid::plugin::SpinVelocity::update().


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