Package com.solibri.geometry.primitive3d
Interface Line3d
- All Known Subinterfaces:
- MLine3d
public interface Line3d
Read-only interface for handling lines in 3-dimensional space.
- Since:
- 9.10.2
- 
Method SummaryModifier and TypeMethodDescriptionstatic Line3dCreates a new instance.doubleCalculates the distance of a point from this line.doubledistanceSqr(MVector3d point) Calculates the squared distance of a point from this line.Returns the normalized direction vector of this line.Returns the first bootstrapping point of this line.getIntersectionPoint(Plane plane) Returns the point of intersection between this line and the given plane.Returns the second bootstrapping point of this line.booleanintersects(AABB3d aabb) Returns true if the line intersects the axis-aligned bounding box, false otherwise.
- 
Method Details- 
createCreates a new instance.- Parameters:
- firstPoint- the first point
- secondPoint- the second point
- Returns:
- a Line3d instance
- Since:
- 9.10.2
 
- 
getFirstPointVector3d getFirstPoint()Returns the first bootstrapping point of this line.- Returns:
- the first bootstrapping point of this line
- Since:
- 9.10.2
 
- 
getSecondPointVector3d getSecondPoint()Returns the second bootstrapping point of this line.- Returns:
- the second bootstrapping point of this line
- Since:
- 9.10.2
 
- 
getDirectionVector3d getDirection()Returns the normalized direction vector of this line.- Returns:
- the normalized direction vector of this line
- Since:
- 9.10.2
 
- 
getIntersectionPointReturns the point of intersection between this line and the given plane. If the line does not intersect the plane, then returns empty.- Parameters:
- plane- the plane with which the intersection is returned
- Returns:
- the point of intersection between this line and the given plane
- Since:
- 9.10.2
 
- 
distanceSqrCalculates the squared distance of a point from this line.- Parameters:
- point- the point
- Returns:
- the squared distance of a point from this line
- Since:
- 9.10.2
 
- 
distanceCalculates the distance of a point from this line.- Parameters:
- point- the point
- Returns:
- the distance of a point from this line
- Since:
- 9.10.2
 
- 
intersectsReturns true if the line intersects the axis-aligned bounding box, false otherwise.- Parameters:
- aabb- the axis-aligned bounding box with which this is checked for intersection
- Returns:
- if the line intersects the axis-aligned bounding box, false otherwise
- Since:
- 9.10.2
 
 
-