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

Classes

struct  BBox
 
struct  stlFile
 
struct  Triangle
 
class  Vec3D
 

Functions

double dot (const Vec3D &a, const Vec3D &b)
 
Vec3D cross (const Vec3D &v1, const Vec3D &v2)
 
Vec3D operator+ (const Vec3D &v1, const Vec3D &v2)
 
Vec3D operator- (const Vec3D &v1, const Vec3D &v2)
 
Vec3D operator* (const double x, const Vec3D &v)
 
Vec3D operator* (const Vec3D &v, const double x)
 
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 &strm, const Vec3D &v)
 
bool intersect (const Vec3D &point, const Vec3D &ray, const Triangle &t, double EPSILON)
 
double randDouble (double min, double max)
 
Vec3D parseVec (std::ifstream &file)
 
std::ostream & operator<< (std::ostream &strm, Triangle &t)
 
stlFile parseSTL (std::string path)
 

Function Documentation

◆ cross()

Vec3D titan::stl::cross ( const Vec3D v1,
const Vec3D v2 
)

◆ dot()

double titan::stl::dot ( const Vec3D a,
const Vec3D b 
)

◆ intersect()

bool titan::stl::intersect ( const Vec3D point,
const Vec3D ray,
const Triangle t,
double  EPSILON 
)

◆ operator*() [1/3]

Vec3D titan::stl::operator* ( const double  x,
const Vec3D v 
)

◆ operator*() [2/3]

Vec3D titan::stl::operator* ( const Vec3D v,
const double  x 
)

◆ operator*() [3/3]

Vec3D titan::stl::operator* ( const Vec3D v1,
const Vec3D v2 
)

◆ operator+()

Vec3D titan::stl::operator+ ( const Vec3D v1,
const Vec3D v2 
)

◆ operator-()

Vec3D titan::stl::operator- ( const Vec3D v1,
const Vec3D v2 
)

◆ operator/() [1/2]

Vec3D titan::stl::operator/ ( const Vec3D v,
const double  x 
)

◆ operator/() [2/2]

Vec3D titan::stl::operator/ ( const Vec3D v1,
const Vec3D v2 
)

◆ operator<<() [1/2]

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

◆ operator<<() [2/2]

std::ostream& titan::stl::operator<< ( std::ostream &  strm,
Triangle t 
)

◆ parseSTL()

stlFile titan::stl::parseSTL ( std::string  path)

◆ parseVec()

Vec3D titan::stl::parseVec ( std::ifstream &  file)

◆ randDouble()

double titan::stl::randDouble ( double  min,
double  max 
)