$search

collision_checking::PolySolver Class Reference

A class solves polynomial degree (1,2,3) equations. More...

#include <intersect.h>

List of all members.

Static Public Member Functions

static int solveCubic (BVH_REAL c[4], BVH_REAL s[3])
 Solve a cubic function with coefficients c, return roots s and number of roots.
static int solveLinear (BVH_REAL c[2], BVH_REAL s[1])
 Solve a linear equation with coefficients c, return roots s and number of roots.
static int solveQuadric (BVH_REAL c[3], BVH_REAL s[2])
 Solve a quadratic function with coefficients c, return roots s and number of roots.

Static Private Member Functions

static bool cbrt (BVH_REAL v)
 Compute v^{1/3}.
static bool isZero (BVH_REAL v)
 Check whether v is zero.

Static Private Attributes

static const BVH_REAL NEAR_ZERO_THRESHOLD = 1e-9

Detailed Description

A class solves polynomial degree (1,2,3) equations.

Definition at line 49 of file intersect.h.


Member Function Documentation

bool collision_checking::PolySolver::cbrt ( BVH_REAL  v  )  [inline, static, private]

Compute v^{1/3}.

Definition at line 51 of file intersect.cpp.

bool collision_checking::PolySolver::isZero ( BVH_REAL  v  )  [inline, static, private]

Check whether v is zero.

Definition at line 46 of file intersect.cpp.

int collision_checking::PolySolver::solveCubic ( BVH_REAL  c[4],
BVH_REAL  s[3] 
) [static]

Solve a cubic function with coefficients c, return roots s and number of roots.

Definition at line 98 of file intersect.cpp.

int collision_checking::PolySolver::solveLinear ( BVH_REAL  c[2],
BVH_REAL  s[1] 
) [static]

Solve a linear equation with coefficients c, return roots s and number of roots.

Definition at line 56 of file intersect.cpp.

int collision_checking::PolySolver::solveQuadric ( BVH_REAL  c[3],
BVH_REAL  s[2] 
) [static]

Solve a quadratic function with coefficients c, return roots s and number of roots.

Definition at line 64 of file intersect.cpp.


Member Data Documentation

Definition at line 68 of file intersect.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


collision_checking
Author(s): Jia Pan, Dinesh Manocha (UNC, Chapel Hill)
autogenerated on Fri Mar 1 14:57:01 2013