Viewing negative space using translate()
in
Programming Questions
•
2 years ago
In my program, I've used the translate() function to change the origin point from the upper left corner of the image, to the lower left.
My intention is to draw some varying shapes, (lines, points, rectangles) using some data that I have.
The problem is that some of this data has negative point values, think (-5, -6), so based on where my origin point is, I can't see some of my data.
Is there a way to view my image, such that my origin point is in the middle of the image, AND the X and Y values increase as they go up and right, as opposed the default of down and right?
The only option I can think of now is to set the origin point at the middle of my image, and then just convert all of my values so they appear where I think they should, but that's not really the way I'd like to approach this problem.
My intention is to draw some varying shapes, (lines, points, rectangles) using some data that I have.
The problem is that some of this data has negative point values, think (-5, -6), so based on where my origin point is, I can't see some of my data.
Is there a way to view my image, such that my origin point is in the middle of the image, AND the X and Y values increase as they go up and right, as opposed the default of down and right?
The only option I can think of now is to set the origin point at the middle of my image, and then just convert all of my values so they appear where I think they should, but that's not really the way I'd like to approach this problem.
1