void setPoints()
    {
        //Use the equiations below to calculate where user clicked in the scene view.
        //Upon clicking on the plane in the scene view, a new segement in the curve will be created

        if (guiEvent.type == EventType.MouseDown && guiEvent.button == 1 && guiEvent.shift)
        {
            /**Equiation to find the mouse cursor position in the scene view.*/
            Ray     ray             = HandleUtility.GUIPointToWorldRay(guiEvent.mousePosition);
            float   drawPlaneHeight = 0;
            float   dstToPlane      = (drawPlaneHeight - ray.origin.y) / ray.direction.y;
            Vector3 mousePosition   = ray.GetPoint(dstToPlane);
            /** */

            Undo.RecordObject(displayer, "New Segment Added");
            displayer.addPoints(mousePosition);
        }
    }