HOG2
Public Member Functions | Public Attributes | Friends | List of all members
Vector2D Class Reference

#include <WeightedMap2DEnvironment.h>

Public Member Functions

 Vector2D (float _x, float _y)
 
 Vector2D ()
 
void Set (float _x, float _y)
 
void SetUpdateTime (double t)
 
double GetUpdateTime ()
 
void SetAccessTime (double t)
 
double GetAccessTime ()
 
bool operator== (const Vector2D &rhs)
 
std::ostream & operator<< (std::ostream &out)
 
void Normalize ()
 

Public Attributes

float x
 
float y
 
double updateTime
 
double accessTime
 

Friends

Vector2D operator* (const Vector2D &vec, const double num)
 
Vector2D operator* (const double num, const Vector2D &vec)
 
Vector2D operator+ (const Vector2D &v1, const Vector2D &v2)
 

Detailed Description

Definition at line 40 of file WeightedMap2DEnvironment.h.

Constructor & Destructor Documentation

◆ Vector2D() [1/2]

Vector2D::Vector2D ( float  _x,
float  _y 
)
inline

Definition at line 42 of file WeightedMap2DEnvironment.h.

◆ Vector2D() [2/2]

Vector2D::Vector2D ( )
inline

Definition at line 43 of file WeightedMap2DEnvironment.h.

Member Function Documentation

◆ GetAccessTime()

double Vector2D::GetAccessTime ( )
inline

Definition at line 50 of file WeightedMap2DEnvironment.h.

References accessTime.

◆ GetUpdateTime()

double Vector2D::GetUpdateTime ( )
inline

Definition at line 47 of file WeightedMap2DEnvironment.h.

References updateTime.

Referenced by WeightedMap2DEnvironment::ComputeArrowMetric().

◆ Normalize()

void Vector2D::Normalize ( )
inline

◆ operator<<()

std::ostream& Vector2D::operator<< ( std::ostream &  out)
inline

Definition at line 53 of file WeightedMap2DEnvironment.h.

References x, and y.

◆ operator==()

bool Vector2D::operator== ( const Vector2D rhs)
inline

Definition at line 52 of file WeightedMap2DEnvironment.h.

References x, and y.

◆ Set()

void Vector2D::Set ( float  _x,
float  _y 
)
inline

◆ SetAccessTime()

void Vector2D::SetAccessTime ( double  t)
inline

Definition at line 49 of file WeightedMap2DEnvironment.h.

References accessTime.

◆ SetUpdateTime()

void Vector2D::SetUpdateTime ( double  t)
inline

Definition at line 46 of file WeightedMap2DEnvironment.h.

References updateTime.

Referenced by WeightedMap2DEnvironment::UpdateAngle().

Friends And Related Function Documentation

◆ operator* [1/2]

Vector2D operator* ( const double  num,
const Vector2D vec 
)
friend

Definition at line 65 of file WeightedMap2DEnvironment.h.

◆ operator* [2/2]

Vector2D operator* ( const Vector2D vec,
const double  num 
)
friend

Definition at line 59 of file WeightedMap2DEnvironment.h.

◆ operator+

Vector2D operator+ ( const Vector2D v1,
const Vector2D v2 
)
friend

Definition at line 71 of file WeightedMap2DEnvironment.h.

Member Data Documentation

◆ accessTime

double Vector2D::accessTime

Definition at line 79 of file WeightedMap2DEnvironment.h.

Referenced by GetAccessTime(), and SetAccessTime().

◆ updateTime

double Vector2D::updateTime

Definition at line 79 of file WeightedMap2DEnvironment.h.

Referenced by GetUpdateTime(), and SetUpdateTime().

◆ x

float Vector2D::x

◆ y

float Vector2D::y

The documentation for this class was generated from the following file: