Table of Contents

Method Divide

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

Divide(double)

Divides the vector by a scalar.

public GeoVector3 Divide(double scalar)

Parameters

scalar double

The divisor.

Returns

GeoVector3

The scaled vector.

Remarks

Dividing by zero is rejected rather than allowed to produce infinities, because a vector of infinities poisons every later calculation silently: it compares unequal to everything, its length is infinite, and normalizing it yields NaN. Failing at the division names the cause.

Exceptions

DivideByZeroException

Thrown when the divisor is zero.