java.lang.Object
org.assertj.core.api.AbstractAssert<Vec3Assert,@Nullable Vec3>
nl.pim16aap2.lightkeeper.framework.assertions.Vec3Assert
All Implemented Interfaces:
org.assertj.core.api.Assert<Vec3Assert,Vec3>, org.assertj.core.api.Descriptable<Vec3Assert>, org.assertj.core.api.ExtensionPoints<Vec3Assert,Vec3>

public final class Vec3Assert extends org.assertj.core.api.AbstractAssert<Vec3Assert,@Nullable Vec3>
Frozen vector assertions with explicit Euclidean and per-component tolerance contracts.
  • Field Summary

    Fields inherited from class org.assertj.core.api.AbstractAssert

    info, throwUnsupportedExceptionOnEquals
  • Method Summary

    Modifier and Type
    Method
    Description
    hasComponentsCloseTo(Vec3 expected, double tolerance)
    Checks an inclusive absolute-error bound on each component, suitable for scale vectors.
    isCloseTo(Vec3 expected, double tolerance)
    Checks an inclusive Euclidean distance bound.

    Methods inherited from class org.assertj.core.api.AbstractAssert

    actual, asInstanceOf, asList, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, usingComparator, usingComparator, usingDefaultComparator, usingEquals, usingEquals, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.assertj.core.api.Descriptable

    as, as, as, describedAs, describedAs
  • Method Details

    • isCloseTo

      public Vec3Assert isCloseTo(Vec3 expected, double tolerance)
      Checks an inclusive Euclidean distance bound.
      Parameters:
      expected - Finite target vector.
      tolerance - Finite nonnegative maximum distance.
      Returns:
      This assertion.
    • hasComponentsCloseTo

      public Vec3Assert hasComponentsCloseTo(Vec3 expected, double tolerance)
      Checks an inclusive absolute-error bound on each component, suitable for scale vectors.
      Parameters:
      expected - Finite target vector.
      tolerance - Finite nonnegative maximum error per component.
      Returns:
      This assertion.