예제 #1
0
        //Transforms direction from world space to local space.
        public Fix64Vec3 InverseTransfromDirction(Fix64Vec3 direction)
        {
            Fix64Mat4x4 m = worldToLocalMatrix;
            Fix64Vec3   p = m.MultiplyVector(direction);

            return(p);
        }
예제 #2
0
        //Transforms position from world space to local space.
        public Fix64Vec3 InverseTransformPoint(Fix64Vec3 position)
        {
            Fix64Mat4x4 m = worldToLocalMatrix;
            Fix64Vec3   p = m.MultiplyPoint3x4(position);

            return(p);
        }
예제 #3
0
        public Fix64Vec3 TransformDirectionUnscaled(Fix64Vec3 direction)
        {
            Fix64Mat4x4 m = localToWorldMatrixUnscaled;
            Fix64Vec3   p = m.MultiplyVector(direction);

            return(p);
        }
예제 #4
0
        public Fix64Vec3 TransformPointUnscaled(Fix64Vec3 position)
        {
            Fix64Mat4x4 m = localToWorldMatrixUnscaled;
            Fix64Vec3   p = m.MultiplyPoint3x4(position);

            return(p);
        }