Class Helix
java.lang.Object
org.episteme.core.mathematics.geometry.curves.Helix
- All Implemented Interfaces:
Function<Real, Vector<Real>>, ContinuousFunction<Real, Vector<Real>>, DifferentiableFunction<Real, Vector<Real>>, Function<Real, Vector<Real>>, Relation<Real, Vector<Real>>, ParametricCurve
Represents a 3D helix (spiral) curve.
A helix is a curve that winds around a cylinder at a constant angle. Parametric form: C(t) = (r·cos(t), r·sin(t), h·t) where r is the radius and h is the pitch (height per radian).
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a helix with the given 3D center, radius, and pitch.Creates a helix with the given center, radius, and pitch.Creates a helix with the given radius and pitch. -
Method Summary
Modifier and TypeMethodDescriptionEvaluates the curve at parameter t.Returns the curvature at parameter t.intReturns the dimension of the ambient space.Returns the center point.getPitch()Returns the pitch of the helix.Returns the radius of the helix.Returns the total height for one complete turn (2À radians).Returns the tangent vector at parameter t.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 ParametricCurve
arcLength, differentiate, evaluate, getOutputDimension, normal, unitTangentMethods inherited from interface Relation
getCodomain, getDomain
-
Constructor Details
-
Helix
-
Helix
-
Helix
-
-
Method Details
-
at
Description copied from interface:ParametricCurveEvaluates the curve at parameter t.- Specified by:
atin interfaceParametricCurve- Parameters:
t- the parameter value- Returns:
- the point on the curve
-
dimension
public int dimension()Description copied from interface:ParametricCurveReturns the dimension of the ambient space.- Specified by:
dimensionin interfaceParametricCurve- Returns:
- the dimension
-
tangent
Description copied from interface:ParametricCurveReturns the tangent vector at parameter t.The tangent vector is the derivative: C'(t) = dC/dt
- Specified by:
tangentin interfaceParametricCurve- Parameters:
t- the parameter valueh- the step size for numerical differentiation- Returns:
- the tangent vector
-
curvature
Description copied from interface:ParametricCurveReturns the curvature at parameter t.Curvature: κ = ||C'(t) × C''(t)|| / ||C'(t)||³
For 2D curves: κ = |x'y'' - y'x''| / (x'² + y'²)^(3/2)
- Specified by:
curvaturein interfaceParametricCurve- Parameters:
t- the parameter valueh- the step size for numerical differentiation- Returns:
- the curvature
-
getRadius
-
getPitch
-
getCenter
-
heightPerTurn
Returns the total height for one complete turn (2À radians).- Returns:
- the height per turn
-