◆ Ray() [1/3]
Creates a Ray starting at (0, 0) pointing along the positive x-axis
◆ Ray() [2/3]
Creates a Ray with a start point and a direction angle
- Parameters
-
| start | the start point of Ray |
| direction | the direction angle of Ray |
◆ Ray() [3/3]
Creates a Ray with a start point and a direction vector
- Parameters
-
| start | the start point of Ray |
| direction | the direction vector of Ray |
◆ getDirection()
| const Angle & getDirection |
( |
| ) |
const |
Returns the direction of this Ray
- Returns
- the direction of this Ray
◆ getStart()
| const Point & getStart |
( |
| ) |
const |
Returns the start point of this Ray
- Returns
- the start point of this Ray
◆ rotate()
| void rotate |
( |
const Angle & |
angle | ) |
|
Rotates this Ray counterclockwise by an angle
- Parameters
-
| angle | the angle to rotate the Ray |
◆ setDirection() [1/2]
| void setDirection |
( |
const Angle & |
direction | ) |
|
Sets the direction of this Ray with an angle
- Parameters
-
| direction | the new direction as an angle |
◆ setDirection() [2/2]
| void setDirection |
( |
const Vector & |
direction | ) |
|
Sets the direction of this Ray with a vector
- Parameters
-
| direction | the new direction as a vector |
◆ setStart()
| void setStart |
( |
const Point & |
start | ) |
|
Sets the start point of this Ray
- Parameters
-
◆ toUnitVector()
Returns a unit-magnitude Vector in the direction of the Ray
- Returns
- a unit-magnitude Vector in the direction of the Ray
The documentation for this class was generated from the following files:
- src/software/geom/ray.h
- src/software/geom/ray.cpp