Class Circle
java.lang.Object
org.episteme.core.mathematics.geometry.curves.Circle
- 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 circle as a parametric curve.
2D circle: C(t) = center + (r*cos(t), r*sin(t)) 3D circle: C(t) = center + r*(cos(t)*u + sin(t)*v) where u and v are orthonormal vectors in the plane of the circle.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvaluates the curve at parameter t.Returns the circumference of the circle.Returns the curvature at parameter t.intReturns the dimension of the ambient space.Returns the center of the circle.Returns the radius of the circle.Returns the tangent vector at parameter t.toString()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 ParametricCurve
arcLength, differentiate, evaluate, getOutputDimension, normal, unitTangentMethods inherited from interface Relation
getCodomain, getDomain
-
Constructor Details
-
Circle
-
Circle
-
-
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
-
getCenter
-
getRadius
-
circumference
-
toString
-