ok so heres the deal..
i've got few methods, for drawing shapes(squares circles...)
i have 2 points.. each has x and y coordinates.
the drawing methods look like this
ex: drawRect(int x, int y, int width, int height)
ive come up with the algorithms for drawing a rectangle by dragging mouse from the top left corner to the bottom right.
and also from bottom right to top left.
what would the algorithms be for drawing them from top right to bottom left, and from bottom left to top right
i've got few methods, for drawing shapes(squares circles...)
i have 2 points.. each has x and y coordinates.
the drawing methods look like this
ex: drawRect(int x, int y, int width, int height)
ive come up with the algorithms for drawing a rectangle by dragging mouse from the top left corner to the bottom right.
and also from bottom right to top left.
what would the algorithms be for drawing them from top right to bottom left, and from bottom left to top right