public static enum PolygonalFieldOfView.DefiningConeType extends Enum<PolygonalFieldOfView.DefiningConeType>
Enum Constant and Description |
---|
INSIDE_CONE_TOUCHING_POLYGON_AT_EDGES_MIDDLE
Constant for cones inside polygons and touching it at polygon edges middle points.
|
OUTSIDE_CONE_TOUCHING_POLYGON_AT_VERTICES
Constant for cones outside polygons and touching it at polygon vertices.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Vector3D |
createVertex(Vector3D center,
Vector3D meridian,
double verticesRadius,
int n)
Create a vertex.
|
static PolygonalFieldOfView.DefiningConeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PolygonalFieldOfView.DefiningConeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
protected abstract double |
verticesRadius(double radius,
int n)
Compute radius of cone going through vertices.
|
public static final PolygonalFieldOfView.DefiningConeType INSIDE_CONE_TOUCHING_POLYGON_AT_EDGES_MIDDLE
public static final PolygonalFieldOfView.DefiningConeType OUTSIDE_CONE_TOUCHING_POLYGON_AT_VERTICES
public static PolygonalFieldOfView.DefiningConeType[] values()
for (PolygonalFieldOfView.DefiningConeType c : PolygonalFieldOfView.DefiningConeType.values()) System.out.println(c);
public static PolygonalFieldOfView.DefiningConeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected abstract double verticesRadius(double radius, int n)
radius
- defining cone angular radiusn
- number of sides of the polygonprotected abstract Vector3D createVertex(Vector3D center, Vector3D meridian, double verticesRadius, int n)
center
- center of the polygon (the center is in the inside part)meridian
- point defining the reference meridian for one contact
point between defining cone and polygon (i.e. either a polygon edge
middle point or a polygon vertex)verticesRadius
- defining radius of cone passing through verticesn
- number of sides of the polygonCopyright © 2002-2021 CS GROUP. All rights reserved.