Module technology.sola.engine
Interface ParticleShapeFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
ParticleShapeFunction is a function that returns a
ParticleShape based on a random value.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParticleShapeFunctionAParticleShapeFunctionthat always returnsParticleShape.CIRCLE. -
Method Summary
Modifier and TypeMethodDescriptiongetShape(float roll) Returns aParticleShapebased on a random value.
-
Field Details
-
CIRCLE
AParticleShapeFunctionthat always returnsParticleShape.CIRCLE.
-
-
Method Details
-
getShape
Returns aParticleShapebased on a random value.- Parameters:
roll- a random value from 0 inclusive to 1 exclusive- Returns:
- the randomized
ParticleShape
-