Skip to content

Commit

Permalink
RMat44: delete inversed3x3() method (no DMat44 implementation in Jolt)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Feb 23, 2025
1 parent 7a23b28 commit 7295792
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 37 deletions.
16 changes: 0 additions & 16 deletions src/main/java/com/github/stephengold/joltjni/RMat44.java
Original file line number Diff line number Diff line change
Expand Up @@ -344,20 +344,6 @@ public RMat44 inversed() {
return result;
}

/**
* Return the inverse of the 3x3 portion. The current matrix is unaffected.
*
* @return a new matrix
*/
@Override
public RMat44 inversed3x3() {
long currentVa = va();
long resultVa = inversed3x3(currentVa);
RMat44 result = new RMat44(resultVa, true);

return result;
}

/**
* Return the inverse of the current matrix, assuming the current matrix
* consists entirely of rotation and translation. The current matrix is
Expand Down Expand Up @@ -617,8 +603,6 @@ native private static void getQuaternion(

native private static long inversed(long currentVa);

native private static long inversed3x3(long currentVa);

native private static long inversedRotationTranslation(long currentVa);

native private static boolean isIdentity(long matrixVa);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@ public interface RMat44Arg extends ConstJoltPhysicsObject {
*/
RMat44 inversed();

/**
* Return the inverse of the 3x3 portion. The current matrix is unaffected.
*
* @return a new matrix
*/
RMat44 inversed3x3();

/**
* Return the inverse of the current matrix, assuming the current matrix
* consists entirely of rotation and translation. The current matrix is
Expand Down
14 changes: 0 additions & 14 deletions src/main/native/glue/r/RMat44.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,20 +270,6 @@ JNIEXPORT jlong JNICALL Java_com_github_stephengold_joltjni_RMat44_inversed
return reinterpret_cast<jlong> (pResult);
}

/*
* Class: com_github_stephengold_joltjni_RMat44
* Method: inversed3x3
* Signature: (J)J
*/
JNIEXPORT jlong JNICALL Java_com_github_stephengold_joltjni_RMat44_inversed3x3
(JNIEnv *, jclass, jlong currentVa) {
const RMat44 * const pCurrent = reinterpret_cast<RMat44 *> (currentVa);
RMat44 * const pResult = new RMat44();
TRACE_NEW("RMat44", pResult)
*pResult = pCurrent->Inversed3x3();
return reinterpret_cast<jlong> (pResult);
}

/*
* Class: com_github_stephengold_joltjni_RMat44
* Method: inversedRotationTranslation
Expand Down

0 comments on commit 7295792

Please sign in to comment.