Package me.deecaad.core.utils.shape
Class CubeShape
java.lang.Object
me.deecaad.core.utils.shape.CubeShape
- All Implemented Interfaces:
Shape
An axis-aligned cube centered at the emitter origin with edge length
size. Samples are
uniform random points; hollow restricts them to the surface (one of six faces). The
emission direction is zero, so the emitter falls back to its own direction provider.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull ShapePointgetPoint(double t) Returns one sample from this shape.doublegetSize()booleanisHollow()
-
Constructor Details
-
CubeShape
public CubeShape(double size, boolean hollow) -
CubeShape
public CubeShape(double size)
-
-
Method Details
-
getSize
public double getSize() -
isHollow
public boolean isHollow() -
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.
-