/// <summary> /// Is p adjacent in one of the given directions /// </summary> public bool IsAdjacentTo(IntVector3 p, DirectionSet positioning) { var v = p - this; if (!v.IsNormal) { return(false); } var d = v.ToDirection(); return(positioning.Contains(d)); }