general matrix and the concatenate transformation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • locy
    New Member
    • Jun 2007
    • 29

    general matrix and the concatenate transformation

    hello,
    i am have a little problem

    .how do i write a programm(Geomet ric Transformation) of linear Transformation in Translation,sca lling and rotation
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    That will depend a lot on some design choices you are either going to make or have already made.

    So let me ask you this: what do you have so far?

    Comment

    • locy
      New Member
      • Jun 2007
      • 29

      #3
      Originally posted by sicarie
      That will depend a lot on some design choices you are either going to make or have already made.

      So let me ask you this: what do you have so far?

      i have gotting the linear transformation using translation,rot ation and tha scaling transformation, but my problem now is how to
      get the general matrix and the concatenate transformation. please can you give the format to parform these.

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        Originally posted by locy
        i have gotting the linear transformation using translation,rot ation and tha scaling transformation, but my problem now is how to
        get the general matrix and the concatenate transformation. please can you give the format to parform these.
        Okay, well, those are different than what you said in the thread title and your first post, so do you have an algorithm for accomplishing those yet? (Have you written down the steps you would take if you didn't have a computer and were doing this by hand?)

        You also haven't specified a language yet - C or C++.

        PS - Due to the changing subject, I will be changing the thread title, please let me know if you think it needs to be changed.

        Comment

        • locy
          New Member
          • Jun 2007
          • 29

          #5
          Originally posted by sicarie
          Okay, well, those are different than what you said in the thread title and your first post, so do you have an algorithm for accomplishing those yet? (Have you written down the steps you would take if you didn't have a computer and were doing this by hand?)

          You also haven't specified a language yet - C or C++.

          PS - Due to the changing subject, I will be changing the thread title, please let me know if you think it needs to be changed.
          a programm is aready be given i just to write the correct format in.
          here is what i have do so far
          [code=cpp]
          {
          case TRANSLATION:
          m[][] =transformation _value[0];
          m[][] =transformation _value[0];

          case ROTATION:
          m[][] = -sin(degree_angl e);
          m[][] = cos (degree_angle);

          case SCALING:
          m[][] =transformation _value[0];
          m[][] =transformation _value[1];
          }
          [/code]
          my problem now is the general transformation_ vector whice is the multiplication of all the matrix.and the concatenate transformation. how do i perform/implement these.i am using C++.
          Last edited by sicarie; Mar 17 '08, 02:04 PM. Reason: Code tags are for code, please use them on CODE, not text

          Comment

          • sicarie
            Recognized Expert Specialist
            • Nov 2006
            • 4677

            #6
            Originally posted by locy
            a programm is aready be given i just to write the correct format in.
            here is what i have do so far
            [code=cpp]
            {
            case TRANSLATION:
            m[][] =transformation _value[0];
            m[][] =transformation _value[0];

            case ROTATION:
            m[][] = -sin(degree_angl e);
            m[][] = cos (degree_angle);

            case SCALING:
            m[][] =transformation _value[0];
            m[][] =transformation _value[1];
            }
            [/code]
            This is not valid code. Not only will the cases not work, but they are not set up properly, and each case goes into the next. Are you familiar with case/switch statements and their requirements?

            Originally posted by locy
            my problem now is the general transformation_ vector whice is the multiplication of all the matrix.and the concatenate transformation. how do i perform/implement these.i am using C++.
            You need to create an algorithm - a set of steps that will solve these either on a computer, on paper, by hand, etc... but a set of steps that anyone can walk through to create a general "transformation _vector" and then create a general "concatenat e transformation" for any question of this type.

            Comment

            • locy
              New Member
              • Jun 2007
              • 29

              #7
              Originally posted by sicarie
              This is not valid code. Not only will the cases not work, but they are not set up properly, and each case goes into the next. Are you familiar with case/switch statements and their requirements?


              You need to create an algorithm - a set of steps that will solve these either on a computer, on paper, by hand, etc... but a set of steps that anyone can walk through to create a general "transformation _vector" and then create a general "concatenat e transformation" for any question of this type.
              Code:
              how do i create the this general transformation

              Comment

              • sicarie
                Recognized Expert Specialist
                • Nov 2006
                • 4677

                #8
                The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

                Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

                Then when you are ready post a new question in this thread.

                MODERATOR

                Comment

                Working...