diff options
author | Sven Gothel <[email protected]> | 2023-10-16 05:19:17 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-10-16 05:19:17 +0200 |
commit | aea14464d521dca28165498ffe943ef1122fc2e3 (patch) | |
tree | b028cc74e957c21cb97ff754d608f916c3eff5ba /src/java | |
parent | 2a91bec43a7a58efc22dd36e919308ecc50d9b4a (diff) |
PTS: Add copy constructor
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/com/jogamp/common/av/PTS.java | 5 |
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; } |