diff --git a/src/main/java/com/github/stephengold/joltjni/Float3.java b/src/main/java/com/github/stephengold/joltjni/Float3.java index 12e52446..4eed192a 100644 --- a/src/main/java/com/github/stephengold/joltjni/Float3.java +++ b/src/main/java/com/github/stephengold/joltjni/Float3.java @@ -101,6 +101,19 @@ public float get(int index) { "index must be either 0, 1 or 2"); } } + + /** + * Set all 3 components to specified values. + * + * @param x the desired X component + * @param y the desired Y component + * @param z the desired Z component + */ + public void set(float x, float y, float z) { + this.x = x; + this.y = y; + this.z = z; + } // ************************************************************************* // Object methods