Class PlaneAssertions
- Namespace
- MathAssertions.TUnit
- Assembly
- MathAssertions.TUnit.dll
Fluent Plane assertions. Distinguishes component-wise equality (treats
(n, d) and (-n, -d) as different) from geometric equivalence (treats
them as the same plane).
public static class PlaneAssertions
- Inheritance
-
PlaneAssertions
- Inherited Members
Remarks
v0.2.0 enriches the failure messages with per-component delta rendering via MathAssertions.MathFailureMessage. The geometrically-equivalent variant surfaces the deltas against both the direct and the sign-flipped representation.
Methods
IsApproximatelyEqualTo(Plane, Plane, double)
Component-wise tolerance comparison across Normal and D.
[GenerateAssertion(InlineMethodBody = true)]
public static AssertionResult IsApproximatelyEqualTo(this Plane value, Plane expected, double tolerance)
Parameters
Returns
- AssertionResult
IsGeometricallyEquivalentTo(Plane, Plane, double)
Asserts the two planes describe the same set of points, allowing the
(n, d) = (-n, -d) sign-flip equivalence.
[GenerateAssertion(InlineMethodBody = true)]
public static AssertionResult IsGeometricallyEquivalentTo(this Plane value, Plane expected, double tolerance)
Parameters
Returns
- AssertionResult