#include <APIMath.h>
Public 成员函数 | |
Ray () | |
Ray (const Vector3 &origin, const Vector3 &direction) | |
void | setOrigin (const Vector3 &origin) |
const Vector3 & | getOrigin (void) const |
void | setDirection (const Vector3 &dir) |
const Vector3 & | getDirection (void) const |
Vector3 | getPoint (Real t) const |
RayResult | Intersect (const Vector3 &pos, const Vector3 &dir) const |
Protected 属性 | |
Vector3 | mOrigin |
Vector3 | mDirection |
Ray.
AnyCAD::API::Ray::Ray | ( | ) |
|
inline |
Gets the direction of the ray.
|
inline |
Gets the origin of the ray.
Gets the position of a point t units along the ray.
Gets the intersection point of the the ray and the plane.
pos | the plane position |
dir | the plane direction. |
|
inline |
Sets the direction of the ray.
|
inline |
Sets the origin of the ray.
|
protected |
|
protected |