Class Sphere
java.lang.Object
org.episteme.core.mathematics.geometry.surfaces.Sphere
- All Implemented Interfaces:
Function<Vector<Real>, Vector<Real>>, ContinuousFunction<Vector<Real>, Vector<Real>>, DifferentiableFunction<Vector<Real>, Vector<Real>>, Function<Vector<Real>, Vector<Real>>, Relation<Vector<Real>, Vector<Real>>, ParametricSurface
Represents a sphere as a parametric surface.
Spherical coordinates parametrization: S(θ,Æ) = center + (r*sin(θ)*cos(Æ), r*sin(θ)*sin(Æ), r*cos(θ)) where θ ∈ [0,À] is the polar angle and Æ∈ [0,2À] is the azimuthal angle.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvaluates the surface at parameters (u, v).booleanChecks if a point is on the surface of the sphere.gaussianCurvature(Real theta, Real phi, Real h) Returns the Gaussian curvature at (u, v).Returns the center of the sphere.Returns the radius of the sphere.Returns the normal vector at (u, v).Returns the surface area of the sphere.toString()volume()Returns the volume of the sphere.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ContinuousFunction
isContinuousMethods inherited from interface DifferentiableFunction
isDifferentiableMethods inherited from interface Function
andThen, apply, compose, contains, evaluate, getBackend, setBackendMethods inherited from interface ParametricSurface
differentiate, evaluate, firstFundamentalForm, getOutputDimension, partialU, partialV, surfaceArea, surfaceElementMethods inherited from interface Relation
getCodomain, getDomain
-
Constructor Details
-
Sphere
-
-
Method Details
-
at
Description copied from interface:ParametricSurfaceEvaluates the surface at parameters (u, v).- Specified by:
atin interfaceParametricSurface- Parameters:
theta- the first parameterphi- the second parameter- Returns:
- the point on the surface
-
normal
Description copied from interface:ParametricSurfaceReturns the normal vector at (u, v).The normal is computed as: N = ∂S/∂u × ∂S/∂v
- Specified by:
normalin interfaceParametricSurface- Parameters:
theta- the first parameterphi- the second parameterh- the step size for numerical differentiation- Returns:
- the unit normal vector
-
gaussianCurvature
Description copied from interface:ParametricSurfaceReturns the Gaussian curvature at (u, v).K = (LN - M²) / (EG - F²) where L, M, N are second fundamental form coefficients and E, F, G are first fundamental form coefficients.
- Specified by:
gaussianCurvaturein interfaceParametricSurface- Parameters:
theta- the first parameterphi- the second parameterh- the step size- Returns:
- the Gaussian curvature
-
surfaceArea
-
volume
-
getCenter
-
getRadius
-
contains
-
toString
-