diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-12-29 01:40:52 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-12-29 01:40:52 +0300 |
commit | 1503c90f6b1bd1e910f018a8d6d1e13b9e27767f (patch) | |
tree | 49dd458537b45df771da85598b44f1a8f459e62a /source/blender/editors/include | |
parent | 8c6ac076ed915976a8f9de03b399b60ae9654584 (diff) |
Utility function to get the view vector aligned with a specific 3d coordinate.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_view3d.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h index 13ef235d8fe..de5a9fe4e07 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -93,6 +93,8 @@ void project_int_noclip(struct ARegion *ar, float *vec, int *adr); void project_float(struct ARegion *ar, float *vec, float *adr); void project_float_noclip(struct ARegion *ar, float *vec, float *adr); +void viewvector(struct RegionView3D *rv3d, float coord[3], float vec[3]); + void viewline(struct ARegion *ar, struct View3D *v3d, float mval[2], float ray_start[3], float ray_end[3]); void viewray(struct ARegion *ar, struct View3D *v3d, float mval[2], float ray_start[3], float ray_normal[3]); |