Constructor
new Ray(pt)
Construct ray by setting start point
- Source:
Parameters:
Name | Type | Description |
---|---|---|
pt |
Point
|
start point |
Members
Methods
clone() → {Ray}
Returns copied instance of the ray object
- Source:
Returns:
- Type:
-
Ray
intersect(shape) → {Array}
Returns array of intersection points between ray and segment or arc
- Source:
Parameters:
Name | Type | Description |
---|---|---|
shape |
Segment
|
Arc
|
Shape to intersect with ray |
Returns:
- Type:
-
Array
array of intersection points