Class Line3D
java.lang.Object
org.episteme.core.mathematics.geometry.Line3D
- All Implemented Interfaces:
GeometricObject<Point3D>
Represents a line in 3D Euclidean space.
Defined by a point P and a direction vector V: L(t) = P + tV.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the dimension of the ambient space containing this object.closestPoint(Line3D other) Computes the closest point on this line to another line.booleanChecks if a point lies on this line (within tolerance).booleanReturns a human-readable description of this geometric object.intReturns the intrinsic dimension of this geometric object.Calculates the distance from a point to this line.getPoint()intersection(Line3D other) Computes the intersection point with another line.
-
Constructor Details
-
Line3D
-
-
Method Details
-
getPoint
-
getDirection
-
distance
-
contains
Checks if a point lies on this line (within tolerance).- Parameters:
p- the pointtolerance- the error tolerance- Returns:
- true if p is on the line
-
dimension
public int dimension()Description copied from interface:GeometricObjectReturns the intrinsic dimension of this geometric object.Examples:
- Point: 0
- Line/Segment: 1
- Plane/Surface: 2
- Volume: 3
- Specified by:
dimensionin interfaceGeometricObject<Point3D>- Returns:
- the dimension
-
ambientDimension
public int ambientDimension()Description copied from interface:GeometricObjectReturns the dimension of the ambient space containing this object.For example, a 2D plane in 3D space has dimension=2 but ambientDimension=3.
- Specified by:
ambientDimensionin interfaceGeometricObject<Point3D>- Returns:
- the ambient space dimension
-
containsPoint
-
description
Description copied from interface:GeometricObjectReturns a human-readable description of this geometric object.- Specified by:
descriptionin interfaceGeometricObject<Point3D>- Returns:
- description string
-
intersection
-
closestPoint
-