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

Commit 1a7fadaf authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Add copy constructor to PointF"

parents 47782ba5 c492bc1e
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
     */