Example #1
0
    public static CardinalFontShape newDownLeft()
    {
        /**
         * (0,0)   D=T
         * (0,-1)  U=T L=T
         * (-1,-1) R=T
         */
        CardinalFontPoint p1 = new CardinalFontPoint(new Vector2Int(0, 0));

        p1.pointsDown();

        CardinalFontPoint p2 = new CardinalFontPoint(new Vector2Int(0, -1));

        p2.pointsUp().pointsLeft();

        CardinalFontPoint p3 = new CardinalFontPoint(new Vector2Int(-1, -1));

        p3.pointsRight();

        return(new CardinalFontShape(new HashSet <CardinalFontPoint> {
            p1, p2, p3
        }));
    }
Example #2
0
    public static PenDownCrdinalFontShape newDownRight()
    {
        /**
         * (0,0)  D=T
         * (0,-1) U=T R=T
         * (1,-1) L=T
         */
        CardinalFontPoint p1 = new CardinalFontPoint(new Vector2Int(0, 0));

        p1.pointsDown();

        CardinalFontPoint p2 = new CardinalFontPoint(new Vector2Int(0, -1));

        p2.pointsUp().pointsRight();

        CardinalFontPoint p3 = new CardinalFontPoint(new Vector2Int(1, -1));

        p3.pointsLeft();

        return(new PenDownCrdinalFontShape(new HashSet <CardinalFontPoint> {
            p2
        }, p1, p3));
    }