public static NuGenBox2F operator*(NuGenBox2F b, NuGenTrafo2F t) { NuGenBox2F result = NuGenBox2F.Empty; result += b.LL * t; result += b.LU * t; result += b.UL * t; result += b.UU * t; return(result); }
public static bool ApproxEqual(NuGenBox2F a, NuGenBox2F b) { return (NuGenVector.ApproxEquals(a.Lower, b.Lower) && NuGenVector.ApproxEquals(a.Upper, b.Upper)); }
public override bool Equals(object obj) { NuGenBox2F x = (NuGenBox2F)obj; return(lower == x.Lower && upper == x.Upper); }
public bool IsInsideOrOnBorder(NuGenBox2F b) { return(lower <= b.lower && upper >= b.upper); }
public bool IsOnBorder(NuGenBox2F b) { return(IsInsideOrOnBorder(b) && !IsInside(b)); }
public bool IsInside(NuGenBox2F b) { return(lower < b.lower && upper > b.upper); }
public static bool ApproxEqual(NuGenBox2F a, NuGenBox2F b) { return NuGenVector.ApproxEquals(a.Lower, b.Lower) && NuGenVector.ApproxEquals(a.Upper, b.Upper); }
public bool IsOnBorder(NuGenBox2F b) { return IsInsideOrOnBorder(b) && !IsInside(b); }
public bool IsInsideOrOnBorder(NuGenBox2F b) { return lower <= b.lower && upper >= b.upper; }
public bool IsInside(NuGenBox2F b) { return lower < b.lower && upper > b.upper; }