public override bool Test(AxisAlignedBoundingBox other) { var c1 = Collision.BoxContainsPoint(ref other.sbb, ref P1); if (c1 == ContainmentType.Disjoint) { var c2 = Collision.BoxContainsPoint(ref other.sbb, ref P2); if (c2 == ContainmentType.Disjoint) { var c3 = Collision.BoxContainsPoint(ref other.sbb, ref P3); if (c3 == ContainmentType.Disjoint) { return(false); } } } return(true); }
/// <summary> /// Determines whether the current objects contains a point. /// </summary> /// <param name="point">The point to test.</param> /// <returns>The type of containment the two objects have.</returns> public bool Contains(ref Vector3 point) { return(Collision.BoxContainsPoint(ref this, ref point)); }
/// <summary> /// Determines whether the current objects contains a point. /// </summary> /// <param name="point">The point to test.</param> /// <returns>The type of containment the two objects have.</returns> public ContainmentType Contains(ref Vector3 point) { return(Collision.BoxContainsPoint(ref this, ref point)); }