LARS
LARS (Light Augmented Reality System) is an open-source framework for light-based interaction and real-time tracking in multi-robot experiments. Inspired by ARK, LARS extends the augmented reality paradigm to robotic collectives by projecting dynamic visual cues and environments onto the arena, enabling new experimental possibilities for collective robotics research, education, and outreach. LARS features integrated tracking, light projection, and modular experiment control with a user-friendly Qt GUI.
Loading...
Searching...
No Matches
vector_2d.h File Reference

2d vector class Header File. More...

#include <geom/angle_deg.h>
#include <functional>
#include <iostream>
#include <cmath>

Go to the source code of this file.

Classes

class  rcsc::Vector2D
 2D point vector class More...
class  rcsc::Vector2D::XCmp
 comparison predicate for X value. More...
class  rcsc::Vector2D::YCmp
 comparison predicate for Y value. More...
class  rcsc::Vector2D::AbsXCmp
 comparison predicate for absolute X value. More...
class  rcsc::Vector2D::AbsYCmp
 comparison predicate for absolute Y value. More...
class  rcsc::Vector2D::XYCmp
 comparison predicate for XY value (X -> Y order). More...
class  rcsc::Vector2D::YXCmp
 comparison predicatio for XY value (Y -> X order) More...
class  rcsc::Vector2D::Equal
 check if two vectors are completely same or not. More...
class  rcsc::Vector2D::IsWithin< REGION >
 template predicate for 2D region sign detection. More...

Functions

bool operator== (const rcsc::Vector2D &lhs, const rcsc::Vector2D &rhs)
 check vectors are strictly same or not.
bool operator!= (const rcsc::Vector2D &lhs, const rcsc::Vector2D &rhs)
 check vectors are strictly different or not.
const rcsc::Vector2D operator+ (const rcsc::Vector2D &lhs, const rcsc::Vector2D &rhs)
 operator add(T, T)
const rcsc::Vector2D operator- (const rcsc::Vector2D &lhs, const rcsc::Vector2D &rhs)
 operator sub(T, T)
const rcsc::Vector2D operator* (const rcsc::Vector2D &lhs, const double &rhs)
 operator mult(T, U)
const rcsc::Vector2D operator/ (const rcsc::Vector2D &lhs, const double &rhs)
 operator div(T, U)
template<typename T>
bool operator< (const rcsc::Vector2D &lhs, const T &rhs)
 never used
template<typename T>
bool operator<= (const rcsc::Vector2D &lhs, const T &rhs)
 never used
template<typename T>
bool operator> (const rcsc::Vector2D &lhs, const T &rhs)
 never used
template<typename T>
bool operator>= (const rcsc::Vector2D &lhs, const T &rhs)
 never used
template<typename T>
bool operator< (const T &lhs, const rcsc::Vector2D &rhs)
 never used
template<typename T>
bool operator<= (const T &lhs, const rcsc::Vector2D &rhs)
 never used
template<typename T>
bool operator> (const T &lhs, const rcsc::Vector2D &rhs)
 never used
template<typename T>
bool operator>= (const T &lhs, const rcsc::Vector2D &rhs)
 never used
template<typename T>
bool operator== (const T &lhs, const rcsc::Vector2D &rhs)
 never used
template<typename T>
bool operator!= (const T &lhs, const rcsc::Vector2D &rhs)
 never used
std::ostream & operator<< (std::ostream &os, const rcsc::Vector2D &v)
 stream operator

Detailed Description

2d vector class Header File.

Function Documentation

◆ operator!=()

bool operator!= ( const rcsc::Vector2D & lhs,
const rcsc::Vector2D & rhs )
inline

check vectors are strictly different or not.

Parameters
lhsleft hand side parameter
rhsright hand side parameter
Returns
true if vectors are not same.

◆ operator*()

const rcsc::Vector2D operator* ( const rcsc::Vector2D & lhs,
const double & rhs )
inline

operator mult(T, U)

Parameters
lhsleft hand side parameter
rhsright hand side parameter. double type
Returns
new vector object

◆ operator+()

const rcsc::Vector2D operator+ ( const rcsc::Vector2D & lhs,
const rcsc::Vector2D & rhs )
inline

operator add(T, T)

Parameters
lhsleft hand side parameter
rhsright hand side parameter
Returns
new vector object

◆ operator-()

const rcsc::Vector2D operator- ( const rcsc::Vector2D & lhs,
const rcsc::Vector2D & rhs )
inline

operator sub(T, T)

Parameters
lhsleft hand side parameter
rhsright hand side parameter
Returns
new vector object

◆ operator/()

const rcsc::Vector2D operator/ ( const rcsc::Vector2D & lhs,
const double & rhs )
inline

operator div(T, U)

Parameters
lhsleft hand side parameter
rhsright hand side parameter. double type
Returns
new vector object

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
const rcsc::Vector2D & v )
inline

stream operator

Parameters
osreference to ostream
voutput value
Returns
reference to ostream

◆ operator==()

bool operator== ( const rcsc::Vector2D & lhs,
const rcsc::Vector2D & rhs )
inline

check vectors are strictly same or not.

Parameters
lhsleft hand side parameter
rhsright hand side parameter
Returns
true if vectors are same.