Constructor GeoObb3
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GeoObb3(GeoPoint3, double, double, double)
Initializes a box aligned with the world axes.
public GeoObb3(GeoPoint3 center, double sizeX, double sizeY, double sizeZ)
Parameters
centerGeoPoint3Centre point of the box.
sizeXdoubleFull size along the X axis.
sizeYdoubleFull size along the Y axis.
sizeZdoubleFull size along the Z axis.
Exceptions
- ArgumentOutOfRangeException
Thrown when any size is negative.
GeoObb3(GeoPoint3, double, double, double, GeoVector3, GeoVector3)
Initializes a box with its own orientation.
public GeoObb3(GeoPoint3 center, double sizeX, double sizeY, double sizeZ, GeoVector3 axisX, GeoVector3 axisY)
Parameters
centerGeoPoint3Centre point of the box.
sizeXdoubleFull size along the local X axis.
sizeYdoubleFull size along the local Y axis.
sizeZdoubleFull size along the local Z axis.
axisXGeoVector3The direction the local X axis should follow.
axisYGeoVector3A direction on the positive Y side of the local XY plane.
Remarks
The axes are made orthonormal on the way in, so a Y direction that is not quite square to X is corrected rather than producing a skewed box. See GeoCoordinateSystem3 for what that costs and why it is done.
Exceptions
- ArgumentException
Thrown when the two directions are degenerate or parallel.
- ArgumentOutOfRangeException
Thrown when any size is negative.
GeoObb3(GeoCoordinateSystem3, double, double, double)
Initializes a box from a local coordinate system and its sizes.
public GeoObb3(GeoCoordinateSystem3 coordinateSystem, double sizeX, double sizeY, double sizeZ)
Parameters
coordinateSystemGeoCoordinateSystem3The centre and orientation of the box.
sizeXdoubleFull size along the local X axis.
sizeYdoubleFull size along the local Y axis.
sizeZdoubleFull size along the local Z axis.
Exceptions
- ArgumentOutOfRangeException
Thrown when any size is negative, NaN or infinite.