Titan  v1.0
A high-performance CUDA-based physics simulation sandbox for robotics, physics, and reinforcement learning.
titan::stl::Vec3D Class Reference

#include <stlparser.h>

Public Member Functions

 Vec3D ()
 
 Vec3D (const Vec3D &v)
 
 Vec3D (double x, double y, double z)
 
Vec3Doperator= (const Vec3D &v)
 
Vec3Doperator+= (const Vec3D &v)
 
Vec3D operator- () const
 
double & operator[] (int n)
 
const double & operator[] (int n) const
 
double norm () const
 
double sum () const
 

Friends

Vec3D operator+ (const Vec3D &x, const Vec3D &y)
 
Vec3D operator- (const Vec3D &x, const Vec3D &y)
 
Vec3D operator* (const Vec3D &v, const double x)
 
Vec3D operator* (const double x, const Vec3D &v)
 
Vec3D operator* (const Vec3D &v1, const Vec3D &v2)
 
Vec3D operator/ (const Vec3D &v, const double x)
 
Vec3D operator/ (const Vec3D &v1, const Vec3D &v2)
 
std::ostream & operator<< (std::ostream &, const Vec3D &)
 

Constructor & Destructor Documentation

◆ Vec3D() [1/3]

titan::stl::Vec3D::Vec3D ( )

◆ Vec3D() [2/3]

titan::stl::Vec3D::Vec3D ( const Vec3D v)

◆ Vec3D() [3/3]

titan::stl::Vec3D::Vec3D ( double  x,
double  y,
double  z 
)

Member Function Documentation

◆ norm()

double titan::stl::Vec3D::norm ( ) const

◆ operator+=()

Vec3D & titan::stl::Vec3D::operator+= ( const Vec3D v)

◆ operator-()

Vec3D titan::stl::Vec3D::operator- ( ) const

◆ operator=()

Vec3D & titan::stl::Vec3D::operator= ( const Vec3D v)

◆ operator[]() [1/2]

double & titan::stl::Vec3D::operator[] ( int  n)

◆ operator[]() [2/2]

const double & titan::stl::Vec3D::operator[] ( int  n) const

◆ sum()

double titan::stl::Vec3D::sum ( ) const

Friends And Related Function Documentation

◆ operator* [1/3]

Vec3D operator* ( const double  x,
const Vec3D v 
)
friend

◆ operator* [2/3]

Vec3D operator* ( const Vec3D v,
const double  x 
)
friend

◆ operator* [3/3]

Vec3D operator* ( const Vec3D v1,
const Vec3D v2 
)
friend

◆ operator+

Vec3D operator+ ( const Vec3D x,
const Vec3D y 
)
friend

◆ operator-

Vec3D operator- ( const Vec3D x,
const Vec3D y 
)
friend

◆ operator/ [1/2]

Vec3D operator/ ( const Vec3D v,
const double  x 
)
friend

◆ operator/ [2/2]

Vec3D operator/ ( const Vec3D v1,
const Vec3D v2 
)
friend

◆ operator<<

std::ostream& operator<< ( std::ostream &  strm,
const Vec3D v 
)
friend

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