JOML - transformTranspose(vec3) method

Hello, it’s been awhile!

So I’m working on my physics engine and need to quickly transform a Vector3f by the transform of a matrix.

As far as I can tell, JOML doesn’t have a transformTranspose(vec3) function, right?

Currently I have to do something like this:


Matrix3f newMat = new Matrix3f();
contactToWorld.transpose(newMat);
newMat.transform(vec3);

Does JOML have a transformTranspose(vec3) equivalent, and I just missed it?

Thanks
Ike

Found it!

Vector3f.mulTranspose(Matrix3f)

I take it back Vector3f.mulTranspose(Matrix3f) uses the wrong method!

source:


public Vector3f mulTranspose(Matrix3fc mat) {
    return mul(mat, this);
}

Should be:


public Vector3f mulTranspose(Matrix3fc mat) {
    return mulTranspose(mat, this);
}

Hey. Thanks for the info! Sorry about this. An update is pushed on GitHub and a new version org.joml:joml:1.9.4-SNAPSHOT is deployed on oss.sonatype.org now, including an added Matrix3f/d.transformTranspose(Vector3f/d) shortcut.

JOML based 3d physics engine? :point: :wink: :o

@orange451 haha, I’ll keep everyone updated. I’ve just found motivation to work on projects outside of work xP