You are writing a 2D engine for a computer game. For that, you need a class representing a point in a 2D plane.
Define a class named Point2D. It must have two float fields: x and y.
You are writing a 2D engine for a computer game. For that, you need a class representing a point in a 2D plane.
Define a class named Point2D. It must have two float fields: x and y.
Create a free account to access the full topic