Interface BinaryOnOffSetter
- All Known Implementing Classes:
BinaryVoxels
public interface BinaryOnOffSetter
Getters and setters for reading and assigning binary state to voxels.
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isOff
(int x, int y, int z) Does the voxel at this point have an off state?default boolean
Does the voxel at this point have an off state?boolean
isOn
(int x, int y, int z) Does the voxel at this point have an on state?default boolean
Does the voxel at this point have an on state?void
setOff
(int x, int y, int z) Assigns an off state to a voxel at a particular point.default void
Assigns an off state to a voxel at a particular point.void
setOn
(int x, int y, int z) Assigns an on state to a voxel at a particular point.default void
Assigns an on state to a voxel at a particular point.
-
Method Details
-
isOn
boolean isOn(int x, int y, int z) Does the voxel at this point have an on state?- Parameters:
x
- the x-component of the point.y
- the y-component of the point.z
- the z-component of the point.- Returns:
- true if the voxel has an on state.
-
isOff
boolean isOff(int x, int y, int z) Does the voxel at this point have an off state?- Parameters:
x
- the x-component of the point.y
- the y-component of the point.z
- the z-component of the point.- Returns:
- true if the voxel has an off state.
-
setOn
void setOn(int x, int y, int z) Assigns an on state to a voxel at a particular point.- Parameters:
x
- the x-component of the point.y
- the y-component of the point.z
- the z-component of the point.
-
setOff
void setOff(int x, int y, int z) Assigns an off state to a voxel at a particular point.- Parameters:
x
- the x-component of the point.y
- the y-component of the point.z
- the z-component of the point.
-
setOn
Assigns an on state to a voxel at a particular point.- Parameters:
point
- the point to assign an on state to.
-
setOff
Assigns an off state to a voxel at a particular point.- Parameters:
point
- the point to assign an off state to.
-
isOn
Does the voxel at this point have an on state?- Parameters:
point
- the point to assign an on state to.- Returns:
- true if the voxel has an on state.
-
isOff
Does the voxel at this point have an off state?- Parameters:
point
- the point to assign an off state to.- Returns:
- true if the voxel has an off state.
-