DeSiGNAR  0.5a
Data Structures General Library
Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
Designar::Vector2D Class Reference

#include <vector2D.H>

Inheritance diagram for Designar::Vector2D:
Inheritance graph
[legend]
Collaboration diagram for Designar::Vector2D:
Collaboration graph
[legend]

Public Member Functions

bool is_to_right_from (const Vector2D &) const
 
bool is_to_right_on_from (const Vector2D &) const
 
bool is_to_left_from (const Vector2D &) const
 
bool is_to_left_on_from (const Vector2D &) const
 
bool is_collinear_with (const Vector2D &) const
 
bool is_normalized () const
 
bool is_unitarian () const
 
real_t square_magnitude () const
 
real_t magnitude () const
 
real_t length () const
 
void normalize ()
 
void negate ()
 
void scale (double)
 
bool is_opposite (const Vector2D &) const
 
Vector2D get_opposite () const
 
real_t angle_with (const Vector2D &) const
 
void add_scaled_vector (const Vector2D &, real_t)
 
real_t dot_product (const Vector2D &) const
 
real_t scalar_product (const Vector2D &) const
 
real_t cross_product (const Vector2D &) const
 
real_t vector_product (const Vector2D &) const
 
Vector2D component_product (const Vector2D &) const
 
Vector2D operator- () const
 Performs get_opossite. More...
 
Vector2D operator* (real_t) const
 Multiplies this by a scalar value. More...
 
void operator*= (real_t)
 Accumulates the product of this by a scalar value. More...
 
real_t operator* (const Vector2D &) const
 Performs dot_product. More...
 
Vector2D operator+ (const Vector2D &) const
 Performs vector addition. More...
 
void operator+= (const Vector2D &)
 Accumulative vector addition. More...
 
Vector2D operator- (const Vector2D &) const
 Performs vector substraction. More...
 
void operator-= (const Vector2D &)
 Accumulative vector substraction. More...
 
- Public Member Functions inherited from Designar::GenPoint2D< real_t >
 GenPoint2D ()
 
 GenPoint2D (const real_t &_x, const real_t &_y)
 
 GenPoint2D (const real_t &_x, real_t &&_y)
 
 GenPoint2D (real_t &&_x, const real_t &_y)
 
 GenPoint2D (real_t &&_x, real_t &&_y)
 
 GenPoint2D (const GenPoint2D &p)
 
 GenPoint2D (GenPoint2D &&p)
 
GenPoint2Doperator= (const GenPoint2D &p)
 
GenPoint2Doperator= (GenPoint2D &&p)
 
void swap (GenPoint2D &p)
 
const real_tget_x () const
 
const real_tget_y () const
 
void set_x (const real_t &_x)
 
void set_x (real_t &&_x)
 
void set_y (const real_t &_y)
 
void set_y (real_t &&_y)
 
void nullify ()
 
bool is_null () const
 
bool is_zero () const
 
real_t square_distance_with (const GenPoint2D &p) const
 
real_t distance_with (const GenPoint2D &p) const
 
real_t square_distance_to_origin () const
 
real_t distance_to_origin () const
 
bool is_to_right_from (const GenPoint2D &p, const GenPoint2D &q) const
 
bool is_to_right_on_from (const GenPoint2D &p, const GenPoint2D &q) const
 
bool is_to_left_from (const GenPoint2D &p, const GenPoint2D &q) const
 
bool is_to_left_on_from (const GenPoint2D &p, const GenPoint2D &q) const
 
bool is_collinear_with (const GenPoint2D &p, const GenPoint2D &q) const
 
bool is_between (const GenPoint2D &p, const GenPoint2D &q) const
 
 operator bool () const
 
bool operator== (const GenPoint2D &p) const
 
bool operator!= (const GenPoint2D &p) const
 
std::string to_string () const
 

Static Public Member Functions

static std::tuple< Vector2D, Vector2Dmake_orthonormal_basis (const Vector2D &)
 

Static Public Attributes

static const Vector2D ZERO
 

Friends

Vector2D operator* (real_t, const Vector2D &)
 Multiplies a scalar value by a vector. More...
 

Additional Inherited Members

- Public Types inherited from Designar::GenPoint2D< real_t >
using ComponentType = real_t
 
using NumberType = real_t
 
using ValueType = real_t
 
- Protected Attributes inherited from Designar::GenPoint2D< real_t >
real_t x
 
real_t y
 

Member Function Documentation

void Designar::Vector2D::add_scaled_vector ( const Vector2D ,
real_t   
)
real_t Designar::Vector2D::angle_with ( const Vector2D ) const
Vector2D Designar::Vector2D::component_product ( const Vector2D ) const
real_t Designar::Vector2D::cross_product ( const Vector2D ) const
real_t Designar::Vector2D::dot_product ( const Vector2D ) const
Vector2D Designar::Vector2D::get_opposite ( ) const
bool Designar::Vector2D::is_collinear_with ( const Vector2D ) const
bool Designar::Vector2D::is_normalized ( ) const
bool Designar::Vector2D::is_opposite ( const Vector2D ) const
bool Designar::Vector2D::is_to_left_from ( const Vector2D ) const
bool Designar::Vector2D::is_to_left_on_from ( const Vector2D ) const
bool Designar::Vector2D::is_to_right_from ( const Vector2D ) const
bool Designar::Vector2D::is_to_right_on_from ( const Vector2D ) const
bool Designar::Vector2D::is_unitarian ( ) const
real_t Designar::Vector2D::length ( ) const
real_t Designar::Vector2D::magnitude ( ) const
static std::tuple<Vector2D, Vector2D> Designar::Vector2D::make_orthonormal_basis ( const Vector2D )
static
void Designar::Vector2D::negate ( )
void Designar::Vector2D::normalize ( )
Vector2D Designar::Vector2D::operator* ( real_t  ) const

Multiplies this by a scalar value.

real_t Designar::Vector2D::operator* ( const Vector2D ) const

Performs dot_product.

void Designar::Vector2D::operator*= ( real_t  )

Accumulates the product of this by a scalar value.

Vector2D Designar::Vector2D::operator+ ( const Vector2D ) const

Performs vector addition.

void Designar::Vector2D::operator+= ( const Vector2D )

Accumulative vector addition.

Vector2D Designar::Vector2D::operator- ( ) const

Performs get_opossite.

Vector2D Designar::Vector2D::operator- ( const Vector2D ) const

Performs vector substraction.

void Designar::Vector2D::operator-= ( const Vector2D )

Accumulative vector substraction.

real_t Designar::Vector2D::scalar_product ( const Vector2D ) const
void Designar::Vector2D::scale ( double  )
real_t Designar::Vector2D::square_magnitude ( ) const
real_t Designar::Vector2D::vector_product ( const Vector2D ) const

Friends And Related Function Documentation

Vector2D operator* ( real_t  ,
const Vector2D  
)
friend

Multiplies a scalar value by a vector.

Member Data Documentation

const Vector2D Designar::Vector2D::ZERO
static

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