Class Plane3D
java.lang.Object
org.episteme.core.mathematics.geometry.Plane3D
- All Implemented Interfaces:
GeometricObject<Point3D>
Represents a plane in 3D Euclidean space.
Defined by a normal vector N and a point P: (X - P) . N = 0 or ax + by + cz + d = 0.
- 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.booleanReturns a human-readable description of this geometric object.intReturns the intrinsic dimension of this geometric object.Calculates the signed distance from a point to this plane.flip()flipped()Returns a flipped version of this plane (negated normal and d).static Plane3DfromPoints(Point3D a, Point3D b, Point3D c) Creates a plane from 3 points.getPoint()intersection(Line3D line) Computes the intersection of this plane with a line.intersection(Plane3D other) Computes the intersection of this plane with another plane.negate()Returns a negated version of this plane (flips the normal).Projects a point onto this plane.
-
Constructor Details
-
Plane3D
-
-
Method Details
-
fromPoints
-
flipped
Returns a flipped version of this plane (negated normal and d). -
flip
-
getNormal
-
getPoint
-
distance
-
project
-
negate
Returns a negated version of this plane (flips the normal).- Returns:
- the negated plane
-
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
-
intersection
-