public class CustomSensorPattern extends SensorFieldOfView
SensorFieldOfView
defined by a list of directions defining the outer
perimeter of the field of view. See the Remarks section for more information.
The custom sensor pattern is defined by a list of directions specified using
UnitSpherical
coordinates. UnitSpherical
defines a
direction as two values: a clock angle and a cone angle. The clock angle, sometimes called
azimuth, is the angle in the sensor's X-Y plane measured from the positive X-axis toward
the positive Y-axis. The cone angle is the angle measured from the positive Z-axis toward the negative Z-axis.
The sensor's boresight is down the positive Z-axis.
Constructor and Description |
---|
CustomSensorPattern()
Initializes a new instance.
|
CustomSensorPattern(List<UnitSpherical> directions)
Initializes a new instance with the specified list of directions defining the
custom sensor pattern.
|
CustomSensorPattern(List<UnitSpherical> directions,
double radius)
Initializes a new instance with the specified list of directions defining the
custom sensor pattern.
|
Modifier and Type | Method and Description |
---|---|
boolean |
encloses(Cartesian point)
Indicates if the provided point is inside the volume.
|
List<UnitSpherical> |
getDirections()
Gets the list of directions that define the custom sensor pattern.
|
EnclosureDescriptionCollection |
getEnclosureDescriptions()
Gets the list of descriptions for the enclosure functions for this solid.
|
boolean |
getIsConnected()
Gets a value indicating whether the figure is connected.
|
SensorProjection |
getProjection(Ellipsoid ellipsoid,
KinematicTransformation ellipsoidToSensorTransformation,
SensorProjectionOptions projectionOptions)
Gets the projection of the sensor onto the front surface of a specified ellipsoid and onto a plane at a
specified distance in space.
|
void |
setDirections(List<UnitSpherical> value)
Sets the list of directions that define the custom sensor pattern.
|
getProjection, getRadius, getService, onRadiusChanged, setRadius
public CustomSensorPattern()
public CustomSensorPattern(List<UnitSpherical> directions)
directions
- The list of directions that define the custom sensor pattern. The directions
are vectors originating from the sensor's origin and expressed in the sensor's axes.
See the Remarks section of the CustomSensorPattern
reference documentation
for more information.public CustomSensorPattern(List<UnitSpherical> directions, double radius)
directions
- The list of directions that define the custom sensor pattern. The directions
are vectors originating from the sensor's origin and expressed in the sensor's axes.
See the Remarks section of the CustomSensorPattern
reference documentation
for more information.radius
- The radial limit of the volume. This is the maximum range at
which the sensor can detect a target.public final List<UnitSpherical> getDirections()
CustomSensorPattern
reference documentation
for more information.public final void setDirections(List<UnitSpherical> value)
CustomSensorPattern
reference documentation
for more information.public boolean encloses(@Nonnull Cartesian point)
The point
parameter must be expressed in the same coordinate frame
that the volume is defined in.
public EnclosureDescriptionCollection getEnclosureDescriptions()
getEnclosureDescriptions
in class Solid
public boolean getIsConnected()
getIsConnected
in class Figure
public SensorProjection getProjection(Ellipsoid ellipsoid, @Nonnull KinematicTransformation ellipsoidToSensorTransformation, SensorProjectionOptions projectionOptions)
getProjection
in class SensorFieldOfView
ellipsoid
- The ellipsoid on which the sensor is to be projected.ellipsoidToSensorTransformation
- The transformation from the reference frame of the ellipsoid to the reference frame of the sensor.projectionOptions
- The options controlling how the sensor is projected, or null
to use defaults.