Class CircleObjectFixture
Object
CircleObjectFixture
A fixture for creating circular objects and related utilities for testing purposes.
This class provides methods to create circular object masks, energy stacks, and to check if points are within the scene dimensions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectMask
Creates a circular object mask at a specified center point with a given radius.static EnergyStack
Creates an EnergyStack with the fixture's dimensions.static boolean
sceneContains
(Point2i point) Checks if a given 2D point is within the scene dimensions.
-
Method Details
-
circleAt
Creates a circular object mask at a specified center point with a given radius.- Parameters:
center
- the center point of the circle in 2D coordinatesradius
- the radius of the circle- Returns:
- an ObjectMask representing the circular object
-
energyStack
Creates an EnergyStack with the fixture's dimensions.- Returns:
- a new EnergyStack instance
-
sceneContains
Checks if a given 2D point is within the scene dimensions.- Parameters:
point
- the 2D point to check- Returns:
- true if the point is within the scene dimensions, false otherwise
-