Merged Classes (3)
Global single-value-returning functions which can supply the input arguments for set calls:
- int polar2xCoord(float r, float a); // returns x-projection of vector
- int polar2yCoord(float r, float a); // returns y-projection of vector
- float xyCoord2length(int x, int y); // returns length of vector (pixels)
- float xyCoord2angle(float r, float a); // returns angle of vector (radians)
Each set call to an original variable (x or y) internally updates both ghost variables (r and a) of its target (the same) instance;
Each revised set call to a ghost variable (r or a) internally updates both of its instance’s original variables (x and y);