GsRVIEW2

Viewpoint position (REFERENCE-type)

struct GsRVIEW2 {
        long vpx, vpy, vpz;
        long vpx, vpy, vpz;
        long rz;
        GsCOORDINATE2 *super
};

Members

vpx, vpy, vpz Viewpoint coordinates
vrx, vry, vrz Reference point coordinates
rz Viewpoint twist
super Pointer to the coordinate system that sets the viewpoint (GsCOORDINATE2 type)

Explanation

GsRVIEW2 holds information about the viewpoint and is set by the GsSetRefView2() function.
vpx, vpy, vpz specify the viewpoint coordinates in the coordinate system specified by super.
When the Z-axis is a vector from the viewpoint to the reference point, rz specifies the viewpoint twist, or screen inclination against the Z-axis. It is represented as an integer, with 4096 equivalent to one degree.
The viewpoint and reference point coordinate systems are set in super.
As an example of using this function, an airplane cockpit view can be realized simply by setting super to the airplane coordinate system.