[SML Overview]

# class SMLRay: public SMLLine

    #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.

## Public Interface

constructors | operator= |

### Public Data

SMLVec3f direction;

SMLRay direction.

float length;

SMLRay length.

float a;

Additional scalar parameter.

[top]

SMLLIBENTRY SMLRay(const SMLVec3f& start, const SMLVec3f& direction, float length);

#### Discussion

SMLRay object constructor.

#### Parameters

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);

#### Discussion

SMLRay object constructor.

#### Parameters

start - beginning of the ray.

end - second point on the ray.

[top]

SMLLIBENTRY SMLRay();

#### Discussion

Default SMLRay object constructor.

#### Parameters

No.

[top]

SMLLIBENTRY SMLRay& operator=(SMLRay& ray);

#### Discussion

Method is an overloaded operator-function. It creates ray with parameters equal to those of object ray.

#### Parameters

ray - object of SMLRay type.

#### Return Value

Returns reference to this object.

[top]