void rmauxArcBall (float *x1,
float *y1,
float *x2,
float *y2,
RMmatrix *result)
float *x1, *y1 - pointers to floating point values in the range
(-1..1). These values define a pixel coordinate position within
the viewport (NDC). This point is the starting point for when
computing a rotation. (input)
float *x2, *y2 - pointers to floating point values in the range
(-1..1). These values define a pixel coordinate position within
the viewport (NDC). This point is the ending point for computing
a rotation. (input)
RMmatrix *result - pointer to an RMmatrix (result). The rotation matrix
computed by rmauxArcBall is copied into this return parameter.
librmaux library source file: rmarcball.c
void
rmauxDolly (RMcamera3D *toModify,
float *x1,
float *y1,
float *x2,
float *y2)
RMcamera3D *toModify - a handle to an RMcamera3D. the eye point of
the RMcamera3D is modified by this routine (modified). float *x1, *y1 - pointers to floating point values in the range
(-1..1). These values define a pixel coordinate position within
the viewport (NDC). This point is the starting point for
computing the dolly translation. (input)
float *x2, *y2 - pointers to floating point values in the range
(-1..1). These values define a pixel coordinate position within
the viewport (NDC). This point is the ending point for computing
the dolly translation. (input)
librmaux library source file: rmarcball.c
void
rmauxTranslate (RMcamera3D *toModify,
float *x1,
float *y1,
float *x2,
float *y2)
RMcamera3D *toModify - a handle to an RMcamera3D object (modified). The eye and look-at points of this parameter are modified by
this routine. float *x1, *y1 - pointers to floating point values in the range
(-1..1). These values define a pixel coordinate position within
the viewport (NDC). This point is the starting point for
computing the image plane translation. (input)
float *x2, *y2 - pointers to floating point values in the range
(-1..1). These values define a pixel coordinate position within
the viewport (NDC). This point is the ending point for computing
the image plane translation. (input)
librmaux library source file: rmarcball.c