Modifier and Type | Method and Description |
---|---|
IVector |
direction()
Returns a reference to the ray's unit direction vector.
|
boolean |
getIntersection(IVector center,
double radius,
Vector result)
Finds the intersection between the ray and a circle with the given center and radius.
|
boolean |
getIntersection(IVector start,
IVector end,
double radius,
Vector result)
Finds the intersection between the ray and a capsule with the given start point, end point,
and radius.
|
boolean |
getIntersection(IVector start,
IVector end,
Vector result)
Finds the intersection between the ray and a line segment with the given start and end
points.
|
Vector |
getNearestPoint(IVector point,
Vector result)
Computes the nearest point on the Ray to the supplied point.
|
boolean |
intersects(IVector pt)
Determines whether the ray intersects the specified point.
|
IVector |
origin()
Returns a reference to the ray's point of origin.
|
Ray2 |
transform(Transform transform)
Transforms this ray.
|
Ray2 |
transform(Transform transform,
Ray2 result)
Transforms this ray, placing the result in the object provided.
|
IVector origin()
IVector direction()
Ray2 transform(Transform transform)
Ray2 transform(Transform transform, Ray2 result)
boolean intersects(IVector pt)
boolean getIntersection(IVector start, IVector end, Vector result)
boolean getIntersection(IVector start, IVector end, double radius, Vector result)
boolean getIntersection(IVector center, double radius, Vector result)
Copyright © 2017. All rights reserved.