Example #1
0
    /// <summary>
    /// Post multiplies a translation matrix defined by the vector t
    /// </summary>
    public void Translate(SLVec3f t)
    {
        SLMat4f Tr = new SLMat4f();

        Tr.Translation(t);
        Multiply(Tr);
    }
Example #2
0
    /// <summary>
    /// Post multiplies a translation matrix defined by the vector [tx,ty,tz]
    /// </summary>
    public void Translate(float tx, float ty, float tz)
    {
        SLMat4f Tr = new SLMat4f();

        Tr.Translation(tx, ty, tz);
        Multiply(Tr);
    }