KrisLibrary  1.0.0
Namespaces | Functions
d/misc.h File Reference

Miscellaneous utilities on 3D primitives. More...

#include "primitives.h"
#include <assert.h>

Go to the source code of this file.

Namespaces

 Math3D
 Contains all the definitions in the Math3D package.
 

Functions

bool Math3D::IsFinite (const Vector2 &x)
 
bool Math3D::IsFinite (const Vector3 &x)
 
bool Math3D::IsFinite (const Vector4 &x)
 
bool Math3D::IsFinite (const Matrix2 &R)
 
bool Math3D::IsFinite (const Matrix3 &R)
 
bool Math3D::IsFinite (const Matrix4 &R)
 
bool Math3D::IsInf (const Vector2 &x)
 
bool Math3D::IsInf (const Vector3 &x)
 
bool Math3D::IsInf (const Vector4 &x)
 
bool Math3D::IsInf (const Matrix2 &R)
 
bool Math3D::IsInf (const Matrix3 &R)
 
bool Math3D::IsInf (const Matrix4 &R)
 
bool Math3D::FuzzyZero (const Vector2 &x, Real tol=Epsilon)
 
bool Math3D::FuzzyZero (const Vector3 &x, Real tol=Epsilon)
 
bool Math3D::FuzzyZero (const Vector4 &x, Real tol=Epsilon)
 
template<class V >
bool Math3D::NormLess (const V &x, Real d)
 
template<class V >
bool Math3D::NormLEQ (const V &x, Real d)
 
template<class V >
bool Math3D::NormGreater (const V &x, Real d)
 
template<class V >
bool Math3D::NormGEQ (const V &x, Real d)
 
template<class V >
bool Math3D::DistanceLess (const V &x, const V &y, Real d)
 
template<class V >
bool Math3D::DistanceLEQ (const V &x, const V &y, Real d)
 
template<class V >
bool Math3D::DistanceGreater (const V &x, const V &y, Real d)
 
template<class V >
bool Math3D::DistanceGEQ (const V &x, const V &y, Real d)
 
Real Math3D::Orient2D (const Vector2 &p0, const Vector2 &p1, const Vector2 &p2)
 Orientation test for 2d points. More...
 
Real Math3D::DistanceSquared2D (Real x1, Real y1, Real x2, Real y2)
 
Real Math3D::Distance2D (Real x1, Real y1, Real x2, Real y2)
 
bool Math3D::IsSymmetric (const Matrix2 &R, Real tol=Epsilon)
 
bool Math3D::IsSymmetric (const Matrix3 &R, Real tol=Epsilon)
 
bool Math3D::IsSymmetric (const Matrix4 &R, Real tol=Epsilon)
 
bool Math3D::IsUpperTriangular (const Matrix2 &R, Real tol=Epsilon)
 
bool Math3D::IsUpperTriangular (const Matrix3 &R, Real tol=Epsilon)
 
bool Math3D::IsUpperTriangular (const Matrix4 &R, Real tol=Epsilon)
 

Detailed Description

Miscellaneous utilities on 3D primitives.

Contains predicate tests (IsFinite, IsInf, FuzzyZero), faster comparisons (NormLess, DistanceLess) etc. The comparisons save a square root.