Class Line2D
java.lang.Object
org.episteme.core.mathematics.geometry.Line2D
- All Implemented Interfaces:
GeometricObject<Point2D>
A line in 2D Euclidean space.
Represented in parametric form: P(t) = point + t * direction
* @author Silvere Martin-Michiellot- Since:
- 1.0
- Author:
- Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the dimension of the ambient space containing this object.booleanReturns a human-readable description of this geometric object.intReturns the intrinsic dimension of this geometric object.flipped()Returns a flipped version of this line (reverses direction).getPoint()intersection(Line2D other) Computes the intersection point with another line.Calculates the signed distance from a point to this line.toString()
-
Constructor Details
-
Line2D
-
-
Method Details
-
getPoint
-
getDirection
-
pointAt
-
distanceTo
-
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<Point2D>- 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<Point2D>- Returns:
- the ambient space dimension
-
containsPoint
-
description
Description copied from interface:GeometricObjectReturns a human-readable description of this geometric object.- Specified by:
descriptionin interfaceGeometricObject<Point2D>- Returns:
- description string
-
toString
-
getNormal
-
signedDistance
-
flipped
Returns a flipped version of this line (reverses direction). -
intersection
-