Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Math - Geometry - 2D - Vector2dC
 

  PUBLIC
Vector2dC::Vector2dC(void)
Vector2dC::Vector2dC(const TFVectorC &)
Vector2dC::Vector2dC(RealT,RealT)
Vector2dC::X(void)
Vector2dC::X(void) const
Vector2dC::Y(void)
Vector2dC::Y(void) const
Vector2dC::Perpendicular(void) const
Vector2dC::Dot(const Vector2dC &) const
Vector2dC::Cross(const Vector2dC &) const
Vector2dC::SqrNorm(void) const
Vector2dC::Norm(void) const
Vector2dC::Modulus(void) const
Vector2dC::Angle(void) const
FVectorC::FVectorC(const TFPointC &)
FVectorC::IsReal(void) const
FVectorC::Magnitude(void) const
FVectorC::EuclidDistance(const TFVectorC &) const
FVectorC::Unit(void) const
FVectorC::MakeUnit(void)
TFVectorC::Size(void) const
TFVectorC::Contains(UIntT) const
TFVectorC::operator [](UIntT)
TFVectorC::operator [](UIntT) const
TFVectorC::operator ==(const TFVectorC &) const
TFVectorC::operator !=(const TFVectorC &) const
TFVectorC::Fill(const DataT &)
TFVectorC::Abs(void) const
TFVectorC::operator +=(const TFVectorC &)
TFVectorC::operator -=(const TFVectorC &)
TFVectorC::operator *=(const TFVectorC &)
TFVectorC::operator /=(const TFVectorC &)
TFVectorC::operator +(const TFVectorC &) const
TFVectorC::operator -(const TFVectorC &) const
TFVectorC::operator *(const TFVectorC &) const
TFVectorC::operator /(const TFVectorC &) const
TFVectorC::operator -(void) const
TFVectorC::operator *=(const DataT &)
TFVectorC::operator /=(const DataT &)
TFVectorC::operator *(const DataT &) const
TFVectorC::operator /(const DataT &) const
TFVectorC::Dot(const TFVectorC &) const
TFVectorC::OuterProduct(const TFVectorC &,TFMatrixC &) const
TFVectorC::OuterProduct(TFMatrixC &) const
TFVectorC::Limit(const DataT &,const DataT &)
TFVectorC::MaxValueDistance(const TFVectorC &) const
TFVectorC::CityBlockDistance(const TFVectorC &) const
TFVectorC::SqrEuclidDistance(const TFVectorC &) const
TFVectorC::Sum(void) const
TFVectorC::SumSqr(void) const
TFVectorC::T(void) const
TFVectorC::operator >>(istream &,TFVectorC &)
TFVectorC::operator <<(ostream &,const TFVectorC &)
TFVectorC::operator >>(BinIStreamC &,TFVectorC &)
TFVectorC::operator <<(BinOStreamC &,const TFVectorC &)

   Vector2dC   
 
2D Vector
 
include "Ravl/Vector2d.hh"
Created:24/01/2001 
Source file:Ravl/Math/LinearAlgebra/FixedSize/Vector2d.hh
User Level:Normal
Library:RavlMath
In Scope:RavlN

Parent Classes: Methods:
Vector2dC()
Default constructor.

Vector2dC(const TFVectorC<RealT,2> & base)
Base onstructor.

Vector2dC(RealT v1,RealT v2)
Constructor.

RealT & X()
First component of vector.

RealT X() const
First component of vector.

RealT & Y()
Second component of vector.

RealT Y() const
Second component of vector.

Vector2dC Perpendicular() const
Get a vector perpendicular to this one.

RealT Dot(const Vector2dC & vector) const
Return the dot product

RealT Cross(const Vector2dC & vector) const
Returns the third coordinate of the cross product of this vector and the vector 'v'.

RealT SqrNorm() const
Returns the square of the norm.

RealT Norm() const
Returns the Euclidian size of the vector.

RealT Modulus() const
Returns the Euclidian size of the vector.

RealT Angle() const
Returns the oriented angle (rad) from the axes x in the range -PI to PI.

#include "Ravl/FVector.hh"
explicit FVectorC(const TFPointC<2> & oth)
Base constructor.

bool IsReal() const
Test if matrix only contains real values.
This will return false if either nan's (Not an number) or infinite values are found.

RealT Magnitude() const
Calculate the magintude of the vector.

RealT EuclidDistance(const TFVectorC<RealT,2> & i) const
Returns the magintude of the difference between the two vectors.

FVectorC<2> Unit() const
Create a unit vector with the same direction.

const FVectorC<2> & MakeUnit()
Make this a unit vector.
In place operation.

#include "Ravl/TFVector.hh"
UIntT Size() const
Get size of array
Used by some templates.

bool Contains(UIntT i) const
Test if array contains index i·

RealT & operator [](UIntT ind)
Access item.

const RealT & operator [](UIntT ind) const
Access item.

bool operator ==(const TFVectorC<RealT,2> & ind) const
is equal

bool operator !=(const TFVectorC<RealT,2> & ind) const
is not equal

void Fill(const RealT & dat)
Fill array with value 'dat'.

TFVectorC<RealT,2> Abs() const
Get an vector with Abs(x) run on all it values.

const TFVectorC<RealT,2> & operator +=(const TFVectorC<RealT,2> & ind)
Add an array to this one, inplace.

const TFVectorC<RealT,2> & operator -=(const TFVectorC<RealT,2> & ind)
Returns this index multiplied by index 'ind' item by item.

const TFVectorC<RealT,2> & operator *=(const TFVectorC<RealT,2> & ind)
Multiplies this index by index 'ind' item by item.

const TFVectorC<RealT,2> & operator /=(const TFVectorC<RealT,2> & ind)
Divides this index by index 'ind' item by item.

TFVectorC<RealT,2> operator +(const TFVectorC<RealT,2> & ind) const
Adds this index and 'ind'.

TFVectorC<RealT,2> operator -(const TFVectorC<RealT,2> & ind) const
Subtracts index 'ind' from this index.

TFVectorC<RealT,2> operator *(const TFVectorC<RealT,2> & ind) const
Returns this object multiplied by index 'ind' item by item.

TFVectorC<RealT,2> operator /(const TFVectorC<RealT,2> & ind) const
Returns this object devided by index 'ind' item by item.

TFVectorC<RealT,2> operator -() const
Returns opposite elements (unary minus operator).

const TFVectorC<RealT,2> & operator *=(const RealT & alpha)
Multiplies this index by number 'alpha'.

const TFVectorC<RealT,2> & operator /=(const RealT & alpha)
Divides this index by number 'alpha'.

TFVectorC<RealT,2> operator *(const RealT & alpha) const
Returns this object mutliplied by alpha.

TFVectorC<RealT,2> operator /(const RealT & alpha) const
Returns this object devided by alpha.

RealT Dot(const TFVectorC<RealT,2> & oth) const
Calculate the dot product of this and 'oth' vector.

TFMatrixC<RealT,2,2> & OuterProduct(const TFVectorC<RealT,2> & av,TFMatrixC<RealT,2,2> & result) const
Calculate the outer product of this vector with av.
The output is assigned to 'result'. A reference to 'result' is returned.

The implementation is in "Ravl/FMatrix.hh", it must be included to use this function.


TFMatrixC<RealT,2,2> & OuterProduct(TFMatrixC<RealT,2,2> & result) const
Calculate the outer product of this vector with itsself.
The output is assigned to 'result'. A reference to 'result' is returned.

The implementation is in "Ravl/FMatrix.hh", it must be included to use this function.


bool Limit(const RealT & min,const RealT & max)
Limit all values in this vector to between min and max.
Returns true if all values in the vector are between the limits. Distance calculations ---------------------

RealT MaxValueDistance(const TFVectorC<RealT,2> & i) const
Returns the distance of two indexes in maximum value metric.

RealT CityBlockDistance(const TFVectorC<RealT,2> & i) const
Returns the distance of two indexes in absolute value metric.

RealT SqrEuclidDistance(const TFVectorC<RealT,2> & i) const
Returns the distance of two indexes in square Euclid metric.

RealT Sum() const
Calculate the sum of all the vector elements.

RealT SumSqr() const
Calculate the sum of the squares of all the vector elements.

const TFMatrixC<RealT,1,2> & T() const
Transpose vector.
The implementation for this can be found in "Ravl/TFMatrix.hh"

istream & operator >>(istream & in,TFVectorC<RealT,2> & dat)

ostream & operator <<(ostream & in,const TFVectorC<RealT,2> & dat)

BinIStreamC & operator >>(BinIStreamC & in,TFVectorC<RealT,2> & dat)

BinOStreamC & operator <<(BinOStreamC & in,const TFVectorC<RealT,2> & dat)


Maintainer:Charles Galambos, Created: 24/01/2001, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002