void OnDrawGizmosSelected() { Cup cup = new Cup(cup_p1, cup_p2, cup_p3); foreach (var side in cup.GetSides()) { Gizmos.DrawLine(side.p1, side.p2); } Gizmos.DrawSphere(cup_p3, drawRadius); if (cup.Contains(point, epsilon)) { Gizmos.color = Color.green; } else { Gizmos.color = Color.red; } Gizmos.DrawSphere(point, drawRadius); }