RectangularPyramid Constructor (Double, Double, Double, Double) |
Constructs a volume of limited radius with the provided parameters.
Namespace:
AGI.Foundation.Geometry.Shapes
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 26.3.426.0 (26.3.426.0)
Syntaxpublic RectangularPyramid(
double xHalfAngle,
double yHalfAngle,
double minimumRadius,
double maximumRadius
)
Public Sub New (
xHalfAngle As Double,
yHalfAngle As Double,
minimumRadius As Double,
maximumRadius As Double
)
public:
RectangularPyramid(
double xHalfAngle,
double yHalfAngle,
double minimumRadius,
double maximumRadius
)
new :
xHalfAngle : float *
yHalfAngle : float *
minimumRadius : float *
maximumRadius : float -> RectangularPyramidParameters
- xHalfAngle
- Type: SystemDouble
The half angle measured from the principal direction and in the direction of the x-axis. - yHalfAngle
- Type: SystemDouble
The half angle measured from the principal direction and in the direction of the y-axis. - minimumRadius
- Type: SystemDouble
The radial distance to the spherical surface defining the minimum range of the sensor volume. - maximumRadius
- Type: SystemDouble
The radial distance to the spherical surface defining the maximum range of the sensor volume.
Exceptions| Exception | Condition |
|---|
| ArgumentOutOfRangeException |
Thrown when the xHalfAngle or yHalfAngle is less than or equal to zero or greater than HalfPi radians.
|
| ArgumentOutOfRangeException |
The minimumRadius and maximumRadius radial limits must be in the range from 0.0 to PositiveInfinity.
|
| ArgumentException |
The minimumRadius radial limit must be less the maximumRadius radial limit.
|
See Also