Starter project for SDL2.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
217 B

  1. #include "IZ_point2d.h"
  2. IZ_Point2D IZ_PointTranslate(IZ_Point2D point, IZ_Coordinate translate_x, IZ_Coordinate translate_y) {
  3. return (IZ_Point2D) {
  4. .x = point.x + translate_x,
  5. .y = point.y + translate_y,
  6. };
  7. }