plus

operator fun Point.plus(anotherPoint: Point): Point

Add anotherPoint to this Point by adding the corresponding x and y coordinates.

Important: This is a Public Preview API. It may be changed or removed at any time.

Return

A new Point, the result of the addition.

Parameters

anotherPoint

Point to be added to this Point.


operator fun PointF.plus(anotherPoint: PointF): PointF

Add anotherPoint to this PointF by adding the corresponding x and y coordinates.

Important: This is a Public Preview API. It may be changed or removed at any time.

Return

A new PointF, the result of the addition.

Parameters

anotherPoint

Point to be added to this PointF.