aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-10-16 05:19:17 +0200
committerSven Gothel <[email protected]>2023-10-16 05:19:17 +0200
commitaea14464d521dca28165498ffe943ef1122fc2e3 (patch)
treeb028cc74e957c21cb97ff754d608f916c3eff5ba
parent2a91bec43a7a58efc22dd36e919308ecc50d9b4a (diff)
PTS: Add copy constructor
-rw-r--r--src/java/com/jogamp/common/av/PTS.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/av/PTS.java b/src/java/com/jogamp/common/av/PTS.java
index f6edf6e..7ead54a 100644
--- a/src/java/com/jogamp/common/av/PTS.java
+++ b/src/java/com/jogamp/common/av/PTS.java
@@ -70,6 +70,11 @@ public final class PTS {
this.speed = speed;
set(scr, pts);
}
+ /** Copy constructor */
+ public PTS(final PTS other) {
+ this.speed = other.speed;
+ set(other);
+ }
/** Returns true if {@link #getLast()} is unequal to {@link TimeFrameI#INVALID_PTS}. */
public boolean isValid() { return TimeFrameI.INVALID_PTS != pts; }