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

        glyphInput.Cast(newGlyph);
        glyphInput.ClearInput();
    }
コード例 #2
0
    void Cast(Stroke[] strokes, CastDirection dir)
    {
        Glyph newGlyph = Glyph.CreateGlyph(
            strokes,
            glyphInput.sampleDistance
            );

        currentCast = dir;
        glyphInput.Cast(newGlyph);
        glyphInput.ClearInput();
    }
コード例 #3
0
    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);
    }