EuclidErrors Module
An internal module for Euclid specific exceptions and failure functions.
Types
| Type | Description |
|
Exception for attempting to divide by a 0.0 or almost 0.0 value. Almost 0.0 is defined by UtilEuclid.zeroLengthTolerance as 1e-12. |
|
|
Exception for empty sequences in inputs. |
|
|
Exception in Euclid. |
|
|
Exception for NaN or Infinity values in inputs. |
|
|
Exception for null references in inputs. |
|
|
Exception for Obsolete features. |
|
|
Exception for too small input values that don't give a clear vector direction. |
|
|
Exception for attempting to divide by a 0.0 or almost 0.0 value during Unitizing Almost 0.0 is defined by UtilEuclid.zeroLengthTolerance as 1e-12. |
Functions and values
| Function or value |
Description
|
Full Usage:
fail msg
Parameters:
string
|
|
Full Usage:
fail1 msg a
Parameters:
string
a : 'T
|
|
Full Usage:
fail2 msg a b
Parameters:
string
a : 'T
b : 'U
|
|
Full Usage:
fail3 msg a b c
Parameters:
string
a : 'T
b : 'U
c : 'V
|
|
Full Usage:
failColinear msg a b c
Parameters:
string
a : 'T
b : 'U
c : 'V
|
|
Full Usage:
failDivide msg div obj
Parameters:
string
div : float
obj : 'T
|
|
Full Usage:
failEmptySeq funcName arg
Parameters:
string
arg : string
|
|
Full Usage:
failNaN2 msg x y
Parameters:
string
x : float
y : float
|
|
Full Usage:
failNaN3 msg x y z
Parameters:
string
x : float
y : float
z : float
|
|
Full Usage:
failNotOne2 msg x y
Parameters:
string
x : float
y : float
|
|
Full Usage:
failNotOne3 msg x y z
Parameters:
string
x : float
y : float
z : float
|
|
Full Usage:
failNull funcName arg
Parameters:
string
arg : string
|
|
Full Usage:
failObsolete funName newFunName
Parameters:
string
newFunName : string
|
|
Full Usage:
failObsoleteV30 funName newFunName
Parameters:
string
newFunName : string
|
|
Full Usage:
failQuat w x y z
Parameters:
float
x : float
y : float
z : float
|
|
Full Usage:
failRarr msg xs
Parameters:
string
xs : ResizeArray<'T>
|
|
Full Usage:
failRect2DOffsetEdge (offStart, offEnd, len, edgeIdx, d)
Parameters:
'a
offEnd : 'b
len : 'c
edgeIdx : 'd
d : 'e
|
Raises an EuclidException when offsetting a 2D rectangle edge fails due to insufficient size.
|
Full Usage:
failRect3DOffsetEdge (offStart, offEnd, len, edgeIdx, d)
Parameters:
'a
offEnd : 'b
len : 'c
edgeIdx : 'd
d : 'e
|
Raises an EuclidException when offsetting a 3D rectangle edge fails due to insufficient size.
|
Full Usage:
failRot x y
Parameters:
float
y : float
|
|
Full Usage:
failTooClose msg this other
Parameters:
string
this : 'T
other : 'U
|
|
Full Usage:
failTooFewPoly2D name minCount actual
Parameters:
string
minCount : int
actual : int
|
|
Full Usage:
failTooFewPoly3D name minCount actual
Parameters:
string
minCount : int
actual : int
|
|
Full Usage:
failTooSmall msg this
Parameters:
string
this : 'T
|
|
Full Usage:
failTooSmall2 msg this other
Parameters:
string
this : 'T
other : 'U
|
|
Full Usage:
failUnit2 msg x y
Parameters:
string
x : float
y : float
|
|
Full Usage:
failUnit3 msg x y z
Parameters:
string
x : float
y : float
z : float
|
|
Full Usage:
failVertical msg v
Parameters:
string
v : 't
|
|
Euclid