Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c492bc1e authored by John Reck's avatar John Reck
Browse files

Add copy constructor to PointF

Fixes: 110863449
Test: builds
Change-Id: Ie562f47becb52f78c406c97d3718de962eb03553
parent bff38997
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -14804,6 +14804,7 @@ package android.graphics {
    ctor public PointF();
    ctor public PointF(float, float);
    ctor public PointF(@NonNull android.graphics.Point);
    ctor public PointF(@NonNull android.graphics.PointF);
    method public int describeContents();
    method public final boolean equals(float, float);
    method public final float length();
+12 −0
Original line number Diff line number Diff line
@@ -39,6 +39,18 @@ public class PointF implements Parcelable {
        this.y = p.y;
    }

    /**
     * Create a new PointF initialized with the values in the specified
     * PointF (which is left unmodified).
     *
     * @param p The point whose values are copied into the new
     *          point.
     */
    public PointF(@NonNull PointF p) {
        this.x = p.x;
        this.y = p.y;
    }
    
    /**
     * Set the point's x and y coordinates
     */