Example #1
0
    void Cast(Stroke[] strokes)
    {
        Glyph newGlyph = Glyph.CreateGlyph(
            strokes,
            glyphInput.sampleDistance
            );

        glyphInput.Cast(newGlyph);
        glyphInput.ClearInput();
    }
    void Cast(Stroke[] strokes, CastDirection dir)
    {
        Glyph newGlyph = Glyph.CreateGlyph(
            strokes,
            glyphInput.sampleDistance
            );

        currentCast = dir;
        glyphInput.Cast(newGlyph);
        glyphInput.ClearInput();
    }
    public GlyphMatch Match(Stroke[] strokes)
    {
        Glyph drawnGlyph = Glyph.CreateGlyph(strokes, glyphInput.sampleDistance);

        if (glyphInput.targetGlyphSet != null)
        {
            GlyphMatch match;
            int        index = glyphInput.method.MultiMatch(drawnGlyph, glyphInput.targetGlyphSet, out match);
            return(match);
        }
        return(null);
    }