diff options
-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; } |