BRL-CAD
|
Files | |
file | matrix.h |
Functions | |
void | ged_persp_mat (fastf_t *m, fastf_t fovy, fastf_t aspect, fastf_t near1, fastf_t far1, fastf_t backoff) |
void | ged_mike_persp_mat (fastf_t *pmat, const fastf_t *eye) |
void | ged_deering_persp_mat (fastf_t *m, const fastf_t *l, const fastf_t *h, const fastf_t *eye) |
int | ged_perspective (struct ged *gedp, int argc, const char *argv[]) |
int | ged_ae2dir (struct ged *gedp, int argc, const char *argv[]) |
int | ged_aet (struct ged *gedp, int argc, const char *argv[]) |
int | ged_arot_args (struct ged *gedp, int argc, const char *argv[], mat_t rmat) |
int | ged_arot (struct ged *gedp, int argc, const char *argv[]) |
int | ged_autoview (struct ged *gedp, int argc, const char *argv[]) |
int | ged_center (struct ged *gedp, int argc, const char *argv[]) |
int | ged_dir2ae (struct ged *gedp, int argc, const char *argv[]) |
int | ged_eye (struct ged *gedp, int argc, const char *argv[]) |
int | ged_eye_pos (struct ged *gedp, int argc, const char *argv[]) |
int | ged_get_autoview (struct ged *gedp, int argc, const char *argv[]) |
int | ged_get_eyemodel (struct ged *gedp, int argc, const char *argv[]) |
int | ged_isize (struct ged *gedp, int argc, const char *argv[]) |
int | ged_loadview (struct ged *gedp, int argc, const char *argv[]) |
int | ged_lookat (struct ged *gedp, int argc, const char *argv[]) |
int | ged_m2v_point (struct ged *gedp, int argc, const char *argv[]) |
int | ged_model2grid_lu (struct ged *gedp, int argc, const char *argv[]) |
int | ged_model2view (struct ged *gedp, int argc, const char *argv[]) |
int | ged_model2view_lu (struct ged *gedp, int argc, const char *argv[]) |
int | ged_mrot (struct ged *gedp, int argc, const char *argv[]) |
int | ged_orient (struct ged *gedp, int argc, const char *argv[]) |
int | ged_pmat (struct ged *gedp, int argc, const char *argv[]) |
int | ged_pmodel2view (struct ged *gedp, int argc, const char *argv[]) |
int | ged_quat (struct ged *gedp, int argc, const char *argv[]) |
int | ged_qvrot (struct ged *gedp, int argc, const char *argv[]) |
int | ged_rot_args (struct ged *gedp, int argc, const char *argv[], char *coord, mat_t rmat) |
int | ged_rot (struct ged *gedp, int argc, const char *argv[]) |
int | ged_rotate_about (struct ged *gedp, int argc, const char *argv[]) |
int | ged_scale_args (struct ged *gedp, int argc, const char *argv[], fastf_t *sf1, fastf_t *sf2, fastf_t *sf3) |
int | ged_scale (struct ged *gedp, int argc, const char *argv[]) |
int | ged_setview (struct ged *gedp, int argc, const char *argv[]) |
int | ged_size (struct ged *gedp, int argc, const char *argv[]) |
int | ged_view2grid_lu (struct ged *gedp, int argc, const char *argv[]) |
int | ged_view2model (struct ged *gedp, int argc, const char *argv[]) |
int | ged_view2model_lu (struct ged *gedp, int argc, const char *argv[]) |
int | ged_view2model_vec (struct ged *gedp, int argc, const char *argv[]) |
int | ged_vrot (struct ged *gedp, int argc, const char *argv[]) |
int | ged_viewdir (struct ged *gedp, int argc, const char *argv[]) |
int | ged_ypr (struct ged *gedp, int argc, const char *argv[]) |
int | ged_zoom (struct ged *gedp, int argc, const char *argv[]) |
int | ged_clip (fastf_t *xp1, fastf_t *yp1, fastf_t *xp2, fastf_t *yp2) |
int | ged_vclip (vect_t a, vect_t b, fastf_t *min, fastf_t *max) |
int | ged_slew (struct ged *gedp, int argc, const char *argv[]) |
int | ged_rmat (struct ged *gedp, int argc, const char *argv[]) |
int | ged_tra_args (struct ged *gedp, int argc, const char *argv[], char *coord, vect_t tvec) |
int | ged_tra (struct ged *gedp, int argc, const char *argv[]) |
int | ged_v2m_point (struct ged *gedp, int argc, const char *argv[]) |
Geometry EDiting Library Angle Matrix/Quat Functions.
void ged_persp_mat | ( | fastf_t * | m, |
fastf_t | fovy, | ||
fastf_t | aspect, | ||
fastf_t | near1, | ||
fastf_t | far1, | ||
fastf_t | backoff | ||
) |
void ged_deering_persp_mat | ( | fastf_t * | m, |
const fastf_t * | l, | ||
const fastf_t * | h, | ||
const fastf_t * | eye | ||
) |
int ged_perspective | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Set/get the perspective angle.
int ged_ae2dir | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Convert az/el to a direction vector.
int ged_aet | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Get or set the azimuth, elevation and twist.
Rotate angle degrees about the specified axis
int ged_arot | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
int ged_autoview | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Auto-adjust the view so that all displayed geometry is in view
int ged_center | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Get or set the view center.
int ged_dir2ae | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Convert a direction vector to az/el.
int ged_eye | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Set/get the eye point
int ged_eye_pos | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Set/get the eye position
int ged_get_autoview | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Get view size and center such that all displayed solids would be in view
int ged_get_eyemodel | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Get the viewsize, orientation and eye point.
int ged_isize | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Returns the inverse view size.
int ged_loadview | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Load the view
int ged_lookat | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Set the look-at point
int ged_m2v_point | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Convert the specified model point to a view point.
int ged_model2grid_lu | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Convert model coordinates to grid coordinates.
int ged_model2view | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Get the model to view matrix
int ged_model2view_lu | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Convert model coordinates to view coordinates.
int ged_mrot | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Rotate the view. Note - x, y and z are rotations in model coordinates.
int ged_orient | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Set the view orientation using a quaternion.
int ged_pmat | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Set/get the perspective matrix.
int ged_pmodel2view | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Get the pmodel2view matrix.
int ged_quat | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Get/set the view orientation using a quaternion
int ged_qvrot | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Set the view from a direction vector and twist.
Rotate the view.
int ged_rot | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
int ged_rotate_about | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Set/get the rotate_about point.
int ged_scale_args | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[], | ||
fastf_t * | sf1, | ||
fastf_t * | sf2, | ||
fastf_t * | sf3 | ||
) |
Scale the view.
int ged_scale | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
int ged_setview | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Set the view orientation given the angles x, y and z in degrees.
int ged_size | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Get or set the view size.
int ged_view2grid_lu | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Convert view coordinates to grid coordinates.
int ged_view2model | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Get the view2model matrix.
int ged_view2model_lu | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Convert view coordinates to model coordinates.
int ged_view2model_vec | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Convert a view vector to a model vector.
int ged_vrot | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Rotate the view. Note - x, y and z are rotations in view coordinates.
int ged_viewdir | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Return the view direction.
int ged_ypr | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Get/set the view orientation using yaw, pitch and roll
int ged_zoom | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Zoom the view in or out.
int ged_slew | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Slew the view
int ged_rmat | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Set/get the rotation matrix.
Translate the view.
int ged_tra | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
int ged_v2m_point | ( | struct ged * | gedp, |
int | argc, | ||
const char * | argv[] | ||
) |
Convert the specified view point to a model point.