Skip to content

Commit

Permalink
javadoc and whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Feb 25, 2025
1 parent 154ea80 commit d5f060f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/github/stephengold/joltjni/Float3.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ public float get(int index) {
case 2:
return z;
default:
throw new IllegalArgumentException(
"index must be 0, 1 or 2");
throw new IllegalArgumentException("index must be 0, 1 or 2");
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/github/stephengold/joltjni/Quat.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ public void set(float x, float y, float z, float w) {
/**
* Set all 4 components from the specified array.
*
* @param array the desired component values (not null, length≥4,
* unaffected)
* @param array the desired component values (in XYZW order, not null,
* length≥4, unaffected)
*/
public void set(float[] array) {
this.x = array[0];
Expand Down Expand Up @@ -442,8 +442,8 @@ public Quat normalized() {
}

/**
* Write all 4 components to the specified buffer and advance the buffer's
* position by 4. The quaternion is unaffected.
* Write all 4 components to the specified buffer in XYZW order and advance
* the buffer's position by 4. The quaternion is unaffected.
*
* @param storeBuffer the destination buffer (not null)
*/
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/github/stephengold/joltjni/RVec3.java
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,7 @@ public double get(int index) {
case 2:
return zz;
default:
throw new IllegalArgumentException(
"index must be 0, 1 or 2");
throw new IllegalArgumentException("index must be 0, 1 or 2");
}
}

Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/github/stephengold/joltjni/Vec3.java
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,7 @@ public float get(int index) {
case 2:
return z;
default:
throw new IllegalArgumentException(
"index must be 0, 1 or 2");
throw new IllegalArgumentException("index must be 0, 1 or 2");
}
}

Expand Down

0 comments on commit d5f060f

Please sign in to comment.