Class Torus
java.lang.Object
org.episteme.core.mathematics.geometry.surfaces.Torus
- 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 torus as a parametric surface.
A torus is generated by revolving a circle around an axis. Parametrization: S(u,v) = ((R+r*cos(v))*cos(u), (R+r*cos(v))*sin(u), r*sin(v)) where: - R is the major radius (distance from center to tube center) - r is the minor radius (tube radius) - u ∈ [0,2À] is the angle around the major circle - v ∈ [0,2À] is the angle around the minor circle
- 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).gaussianCurvature(Real u, Real v, Real h) Returns the Gaussian curvature at (u, v).Returns the center of the torus.Returns the major radius.Returns the minor radius.Returns the partial derivative ∂S/∂u.Returns the partial derivative ∂S/∂v.Returns the surface area of the torus.toString()volume()Returns the volume enclosed by the torus.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, normal, surfaceArea, surfaceElementMethods inherited from interface Relation
getCodomain, getDomain
-
Constructor Details
-
Torus
-
-
Method Details
-
at
Description copied from interface:ParametricSurfaceEvaluates the surface at parameters (u, v).- Specified by:
atin interfaceParametricSurface- Parameters:
u- the first parameterv- the second parameter- Returns:
- the point on the surface
-
partialU
Description copied from interface:ParametricSurfaceReturns the partial derivative ∂S/∂u.This is the tangent vector in the u-direction.
- Specified by:
partialUin interfaceParametricSurface- Parameters:
u- the first parameterv- the second parameterh- the step size for numerical differentiation- Returns:
- the partial derivative vector
-
partialV
Description copied from interface:ParametricSurfaceReturns the partial derivative ∂S/∂v.This is the tangent vector in the v-direction.
- Specified by:
partialVin interfaceParametricSurface- Parameters:
u- the first parameterv- the second parameterh- the step size for numerical differentiation- Returns:
- the partial derivative 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:
u- the first parameterv- the second parameterh- the step size- Returns:
- the Gaussian curvature
-
surfaceArea
-
volume
-
getCenter
-
getMajorRadius
-
getMinorRadius
-
toString
-