Results 1 to 3 of 3

Thread: Any function can do transform, rotate, scale All in one in

  1. #1

    Any function can do transform, rotate, scale All in one in

    Hi,

    What if I wnat to scale an object by 2 times in X, then roate it by 1.0 about Y axis, I have to set matix like this

    scale:=2.0;
    deg:=1.0;
    FillChar(matE, SizeOf(matE),0);
    with matE do
    begin
    _11:=cos(deg)*scale;
    _13:=sin(deg);
    _22:=1;
    _31:=-sin(deg);
    _33:=-cos(deg);
    _44:=1;
    end;

    Is there any function in (un)DelphiX that I can do these by just pass transform, rotate, scale x,y,z?

    Thanks
    Daniel


    RasVector http://dan59314.myweb.hinet.net

  2. #2

    Any function can do transform, rotate, scale All in one in

    Why not just concatenate (multiply) matrixes?
    There are only 10 types of people in this world; those who understand binary and those who don't.

  3. #3

    MatrixMultiply

    Hi, Clootie,

    Thanks, I now find the D3DMath_MatrixMultiply() in D3DUtils.pas.


    Daniel

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •