Table of Contents

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

center GeoPoint3

Centre point of the box.

sizeX double

Full size along the X axis.

sizeY double

Full size along the Y axis.

sizeZ double

Full 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

center GeoPoint3

Centre point of the box.

sizeX double

Full size along the local X axis.

sizeY double

Full size along the local Y axis.

sizeZ double

Full size along the local Z axis.

axisX GeoVector3

The direction the local X axis should follow.

axisY GeoVector3

A 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

coordinateSystem GeoCoordinateSystem3

The centre and orientation of the box.

sizeX double

Full size along the local X axis.

sizeY double

Full size along the local Y axis.

sizeZ double

Full size along the local Z axis.

Exceptions

ArgumentOutOfRangeException

Thrown when any size is negative, NaN or infinite.