Skip to content

Instantly share code, notes, and snippets.

@VovaStelmashchuk
Last active September 24, 2019 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VovaStelmashchuk/a09d17f6987b8eae842411bcf48bd018 to your computer and use it in GitHub Desktop.
Save VovaStelmashchuk/a09d17f6987b8eae842411bcf48bd018 to your computer and use it in GitHub Desktop.
val pointA = Point()
val pointB = Point()
val plusResult = Point(pointA.x + pointB.x,
pointA.y + pointB.y)
val minusResult = Point(pointA.x - pointB.x,
pointA.y - pointB.y)
val divResult = PointF(pointA.x / 4.2,
pointA.y / 4.2)
val timesResult = PointF(pointA.x * 2,
pointA.y * 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment