-->

Transformation (Translation, Rotation and Scaling) of a two dimensional objects in C/C++

Transformation (Translation, Rotation and Scaling) of a two dimensional objects in C/C++
    1. Translation
    A translation is applied to an object by repositioning it along a straight-line path from one coordinate location to another. We translate a two-dimensional point by adding translation distances, tx and ty, to the original coordinate position (x,y) to move the point to a new position (x’, y’)
    x’ = x + tx, y’ = y + ty
    The translation distance pair (tx, ty) is called a translation vector or shift vector. In matrix form the translation of a two dimensional object can be written as
    translation
    2. Rotation
    Read more »
    fardi zayden
    @مرسلة بواسطة
    كاتب ومحرر اخبار اعمل في موقع دراسات تقنية .

    إرسال تعليق