public bool CheckForValidation(DrawableTauHitObject h) { switch (h) { case DrawableBeat beat: return(beat.IntersectArea.ScreenSpaceDrawQuad.AABBFloat.IntersectsWith(defaultCursor.HitReceptor.ScreenSpaceDrawQuad.AABBFloat)); default: return(true); } }
public bool CheckForValidation(DrawableTauHitObject h) { switch (h) { case DrawableBeat beat: var angleDiff = Extensions.GetDeltaAngle(paddle.Rotation, beat.HitObject.Angle); return(Math.Abs(angleDiff) <= angleRange / 2); default: return(true); } }
public bool CheckIfWeCanValidate(DrawableTauHitObject obj) => cursor.CheckForValidation(obj);