Table of Contents

Method TransformBy

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TransformBy(GeoTransform3)

Applies a transformation to this ball.

public GeoSphere3 TransformBy(GeoTransform3 transform)

Parameters

transform GeoTransform3

The transformation to apply.

Returns

GeoSphere3

The ball with its centre moved as a point and its radius scaled by the transformation.

Remarks

A ball survives a transformation only when every direction is stretched by the same amount: a turn, a shift, a mirror or an even scaling. Scaled by 3 along X alone it would be an ellipsoid, which this library has no type for, so the attempt is refused, as it is for a circle, rather than answered with a ball of some averaged radius.

Exceptions

ArgumentNullException

Thrown when the transformation is null.

InvalidOperationException

Thrown when the transformation would turn the ball into an ellipsoid, or flatten it.