public enum BasicRadiusStrategy extends java.lang.Enum<BasicRadiusStrategy> implements RadiusStrategy
Enum Constant and Description |
---|
CIRCLE
In an unobstructed area the FOV would be a circle.
|
DIAMOND
In an unobstructed area the FOV would be a diamond.
|
SQUARE
In an unobstructed area the FOV would be a square.
|
Modifier and Type | Method and Description |
---|---|
float |
radius(float dx,
float dy)
Returns the radius calculated based on the two distances provided.
|
float |
radius(float startx,
float starty,
float endx,
float endy)
Returns the radius between the two points provided.
|
float |
radius(int dx,
int dy)
Returns the radius calculated using the two distances provided.
|
float |
radius(int startx,
int starty,
int endx,
int endy)
Returns the radius between the two points provided.
|
static BasicRadiusStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BasicRadiusStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BasicRadiusStrategy SQUARE
public static final BasicRadiusStrategy DIAMOND
public static final BasicRadiusStrategy CIRCLE
public static BasicRadiusStrategy[] values()
for (BasicRadiusStrategy c : BasicRadiusStrategy.values()) System.out.println(c);
public static BasicRadiusStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic float radius(int startx, int starty, int endx, int endy)
RadiusStrategy
radius
in interface RadiusStrategy
public float radius(float startx, float starty, float endx, float endy)
RadiusStrategy
radius
in interface RadiusStrategy
public float radius(int dx, int dy)
RadiusStrategy
radius
in interface RadiusStrategy
public float radius(float dx, float dy)
RadiusStrategy
radius
in interface RadiusStrategy