From aea14464d521dca28165498ffe943ef1122fc2e3 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 16 Oct 2023 05:19:17 +0200 Subject: PTS: Add copy constructor --- src/java/com/jogamp/common/av/PTS.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/java/com/jogamp/common/av/PTS.java') 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; } -- cgit v1.2.3