Class LineND
java.lang.Object
org.episteme.core.mathematics.geometry.LineND
- All Implemented Interfaces:
GeometricObject<PointND>
Represents an N-dimensional line.
A line is defined by a point and a direction vector. It extends infinitely in both directions along the direction vector.
Parametric form: L(t) = point + t * direction, where t ∈ â„Â
- 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.Evaluates the line at parameter t.Finds the closest point on this line to a given point.booleanReturns a human-readable description of this geometric object.intReturns the intrinsic dimension of this geometric object.Computes the distance from a point to this line.booleangetPoint()inthashCode()intersection(LineND other) Finds the intersection point with another line (if it exists).booleanisParallelTo(LineND other) Checks if this line is parallel to another line.static LineNDCreates a line passing through two points.toString()
-
Constructor Details
-
LineND
-
-
Method Details
-
through
-
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<PointND>- 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<PointND>- Returns:
- the ambient space dimension
-
getPoint
-
getDirection
-
at
-
containsPoint
-
closestPoint
-
distanceTo
-
isParallelTo
Checks if this line is parallel to another line.- Parameters:
other- the other line- Returns:
- true if parallel
-
intersection
-
description
Description copied from interface:GeometricObjectReturns a human-readable description of this geometric object.- Specified by:
descriptionin interfaceGeometricObject<PointND>- Returns:
- description string
-
toString
-
equals
-
hashCode
-