 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
19 1 / rayAxis.
x, 1 / rayAxis.
y,
37 double& toOrigin)
const {
52 assert(minCorner.
x <= maxCorner.
x);
53 assert(minCorner.
y <= maxCorner.
y);
54 assert(minCorner.
z <= maxCorner.
z);
75 if (tmin > tymax || tymin > tmax)
return false;
76 if (tymin > tmin) tmin = tymin;
77 if (tymax < tmax) tmax = tymax;
82 if (tmin > tzmax || tzmin > tmax)
return false;
83 if (tzmin > tmin) tmin = tzmin;
84 if (tzmax < tmax) tmax = tzmax;
void normalize()
Sets vector norm to unity.
Definition: CVGeom.h:428
Type x
Definition: CVGeom.h:137
void squareDistances(const Vector3Tpl< T > &P, double &radial, double &toOrigin) const
Definition: RayAndBox.h:35
Simple Ray structure.
Definition: RayAndBox.h:14
AABB(const Vector3Tpl< T > &minCorner, const Vector3Tpl< T > &maxCorner)
Definition: RayAndBox.h:51
Vector3Tpl< T > invDir
Definition: RayAndBox.h:44
Tuple3Tpl< int > Tuple3i
Tuple of 3 int values.
Definition: CVGeom.h:217
Vector3Tpl cross(const Vector3Tpl &v) const
Cross product.
Definition: CVGeom.h:412
bool intersects(const Ray< T > &r, T *t0=0, T *t1=0) const
Definition: RayAndBox.h:69
Type z
Definition: CVGeom.h:137
Ray(const Vector3Tpl< T > &rayAxis, const Vector3Tpl< T > &rayOrigin)
Definition: RayAndBox.h:15
Simple axis aligned box structure.
Definition: RayAndBox.h:50
double radialSquareDistance(const Vector3Tpl< T > &P) const
Definition: RayAndBox.h:25
Vector3Tpl< T > dir
Definition: RayAndBox.h:43
double norm2d() const
Returns vector square norm (forces double precision output)
Definition: CVGeom.h:419
Vector3Tpl< T > origin
Definition: RayAndBox.h:43
Type y
Definition: CVGeom.h:137
Tuple3i sign
Definition: RayAndBox.h:45
Vector3Tpl< T > corners[2]
Definition: RayAndBox.h:92
double squareDistanceToOrigin(const Vector3Tpl< T > &P) const
Definition: RayAndBox.h:30