Package me.deecaad.core.utils.shape
Class CircleShape
java.lang.Object
me.deecaad.core.utils.shape.CircleShape
- All Implemented Interfaces:
Shape
A circle centered at the emitter origin, lying in the plane perpendicular to
axis.
t parameterizes the angle around the circle (t * 2π), giving deterministic, evenly
distributed points. The emission direction is the radial outward normal in the circle's plane.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCircleShape(double radius) CircleShape(double radius, @NotNull CircleShape.Axis axis) -
Method Summary
Modifier and TypeMethodDescription@NotNull CircleShape.AxisgetAxis()@NotNull ShapePointgetPoint(double t) Returns one sample from this shape.double
-
Constructor Details
-
CircleShape
-
CircleShape
public CircleShape(double radius)
-
-
Method Details
-
getRadius
public double getRadius() -
getAxis
-
getPoint
Description copied from interface:ShapeReturns one sample from this shape. For random shapes (sphere, cone, cube)tis ignored; for deterministic shapes (point, line, circle)tparameterizes the sample.
-