From feb85a8dfa5b58654e03f3338d0021b46a505221 Mon Sep 17 00:00:00 2001 From: stephengold Date: Mon, 24 Feb 2025 18:37:24 -0800 Subject: [PATCH] StateRecorder: use array setters --- .../java/com/github/stephengold/joltjni/StateRecorder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/github/stephengold/joltjni/StateRecorder.java b/src/main/java/com/github/stephengold/joltjni/StateRecorder.java index a78d48f0..34b6d772 100644 --- a/src/main/java/com/github/stephengold/joltjni/StateRecorder.java +++ b/src/main/java/com/github/stephengold/joltjni/StateRecorder.java @@ -1,5 +1,5 @@ /* -Copyright (c) 2024 Stephen Gold +Copyright (c) 2024-2025 Stephen Gold Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -125,7 +125,7 @@ public void readRVec3(RVec3 inOut) { long recorderVa = va(); double[] tmpDoubles = inOut.toArray(); readRVec3(recorderVa, tmpDoubles); - inOut.set(tmpDoubles[0], tmpDoubles[1], tmpDoubles[2]); + inOut.set(tmpDoubles); } /** @@ -150,7 +150,7 @@ public void readVec3(Vec3 inOut) { long recorderVa = va(); float[] storeFloats = inOut.toArray(); readVec3(recorderVa, storeFloats); - inOut.set(storeFloats[0], storeFloats[1], storeFloats[2]); + inOut.set(storeFloats); } /**