#include "smlmath.h"
Class SMLRay is a derived from SMLLine. SMLRay is a line from a start point that has a direction vector, and a scalar length. It also has additional scalar parameter useful in applications.
|
|
SMLVec3f direction;
SMLRay direction.
float length;
SMLRay length.
float a;
Additional scalar parameter.
[top]
SMLLIBENTRY SMLRay(const SMLVec3f& start, const SMLVec3f& direction, float length);
SMLRay object constructor.
start - beginning of the ray.
direction - unit vector, direction of the ray.
length - length of segment on the ray.
[top]
SMLLIBENTRY SMLRay(const SMLVec3f& start, const SMLVec3f& end);
SMLRay object constructor.
start - beginning of the ray.
end - second point on the ray.
[top]
SMLLIBENTRY SMLRay();
Default SMLRay object constructor.
No.
[top]
SMLLIBENTRY SMLRay& operator=(SMLRay& ray);
Method is an overloaded operator-function. It creates ray with parameters equal to those of object ray.
ray - object of SMLRay type.
Returns reference to this object.
[top]