Jump to content
Sign in to follow this  
adnansojib

matrix invert _please help me about thats

Recommended Posts

Posted (edited)

                                                                                                                     

float sectdists[] = point(1, "sectdist", @id);
matrix xforms[] = point(1, "xform", @id);

foreach(int i; matrix xform; xforms){
    matrix xform_inv = invert(xform);         /// i have confusion how its work 
    vector local_P = @P*xform_inv;             ///also this multiply     

    if (local_P.z > sectdists){
        local_P = set(local_P.x, local_P.y, sectdists);
        @P = local_P * xform;
        @Cd = {1,0,0};
        }
    
    }

Edited by adnansojib
i didnt say for solution

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×