/** * Tests on a per component basis, if this vector is exactly equal to {@code other} and have the * same reference frames. * * @param other the other vector to compare against this. Not modified. * @return {@code true} if the two vectors are exactly equal component-wise, {@code false} * otherwise. */ default boolean equals(SpatialMotionReadOnly other) { if (other == null) return false; if (getBodyFrame() != other.getBodyFrame()) return false; if (getBaseFrame() != other.getBaseFrame()) return false; return SpatialVectorReadOnly.super.equals(other); } }