Some utility types and functions related to vectors and images of vectors. More...
#include "Robots/LoBot/util/LoMath.H"
#include "Image/Image.H"
#include "Image/Point2D.H"
#include <math.h>
Go to the source code of this file.
Typedefs | |
typedef Point2D< float > | lobot::Vector |
typedef Image< Vector > | lobot::VectorImage |
Functions | |
float | lobot::direction (const Vector &v) |
Return the radial direction of the supplied vector. | |
Vector | lobot::unit_vector (float dir) |
Return the unit vector associated with the given radial direction. | |
float | lobot::magnitude (const Vector &v) |
Return the magnitude of the supplied vector. | |
Vector | lobot::normalized (const Vector &v) |
Normalize the supplied vector and return the result. | |
float | lobot::dot (const Vector &a, const Vector &b) |
Return the dot product of two 2D vectors. | |
const Vector & | lobot::get_vector (const VectorImage &I, int x, int y) |
From an image of vectors, extract the vector at pixel location (x,y). | |
Vector | lobot::operator* (float k, const Vector &V) |
Some quick operators for vectors. | |
Vector | lobot::operator* (const Vector &V, float k) |
Vector | lobot::operator/ (const Vector &V, float k) |
Some utility types and functions related to vectors and images of vectors.
Definition in file LoVector.H.