Package com.solibri.geometry.primitive3d
Interface Ray3d
- All Known Subinterfaces:
- MRay3d
public interface Ray3d
Read-only interface to handle 3-dimensional rays.
- Since:
- 9.10.2
- 
Method SummaryModifier and TypeMethodDescriptionstatic Ray3dReturns a ray with the given origin and direction.static Ray3dReturns a deep copy of the given ray.Returns the direction of this ray.Returns the origin of this ray.intersect(Triangle3d triangle) Returns an optional containing the intersection point between the ray and the triangle if present, an empty optional otherwise.booleanintersects(AABB3d aabb) Returns true if the ray intersects with the box, false otherwise.booleanintersects(Triangle3d triangle) Returns true if the ray intersects with the triangle, false otherwise.
- 
Method Details- 
createReturns a deep copy of the given ray.- Parameters:
- other- the other ray
- Returns:
- a deep copy of the given ray
- Since:
- 9.10.2
 
- 
createReturns a ray with the given origin and direction.- Parameters:
- origin- the origin of the ray
- direction- the direction of the ray
- Returns:
- a ray with the given origin and direction
- Since:
- 9.10.2
 
- 
getOriginVector3d getOrigin()Returns the origin of this ray.- Returns:
- the origin of this ray
- Since:
- 9.10.2
 
- 
getDirectionVector3d getDirection()Returns the direction of this ray.- Returns:
- the direction of this ray
- Since:
- 9.10.2
 
- 
intersectsReturns true if the ray intersects with the box, false otherwise.- Parameters:
- aabb- the axis-aligned bounding box
- Returns:
- true if the ray intersects with the box, false otherwise
- Since:
- 9.10.2
 
- 
intersectsReturns true if the ray intersects with the triangle, false otherwise.- Parameters:
- triangle- the triangle
- Returns:
- true if the ray intersects with the triangle, false otherwise
- Since:
- 9.10.2
 
- 
intersectReturns an optional containing the intersection point between the ray and the triangle if present, an empty optional otherwise.- Parameters:
- triangle- the triangle
- Returns:
- an optional containing the intersection point between the ray and the triangle if present, an empty optional otherwise
 
 
-