Reporter    Example Index: |  1  |  2  |  3  |  4  |  5  |  6  |  7  |

07: RepoTriangle

RepoTriangle Definition    download .ghx

This sample separates the shape of an object from the space in which it is embedded, giving independent control of each. It reports a triangle developed in one coordinate system (the baseCS) in another system (the reporterCS) and provides rotation and scaling controls for that new coordinate system.

Ironically, this Reporter uses a Reporter internally. In order to compute the rotation of the reporterCS system, a point is defined in the baseCS system at the origin of the reporterCS system, but one unit along the x-axis of the baseCS system. Reporting this point in the reporterCS system provides the arguments needed for the function Atan2 to correctly compute the rotation angle.      ... more on Design Patterns CA

RepoTriangle Manipulations

RepoTriangle Manipulations