diff options
author | Germano <germano.costa@ig.com.br> | 2018-05-17 03:36:41 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2018-05-17 03:36:41 +0300 |
commit | 4b18858660f4e7068e8345315fa04b3215c85548 (patch) | |
tree | 7d2e830f761795820b6aa8b2ea2074be91aa1541 /source/blender/blenlib/BLI_math_geom.h | |
parent | d038f4651e962edddaef057dc5356ac55f87c213 (diff) |
BLI_math_geom: Separate the `isect_ray_seg_v3` from `dist_squared_ray_to_seg_v3`.
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_geom.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index 111450b6402..f12ee2b3c69 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -315,6 +315,11 @@ bool isect_ray_seg_v2( const float v0[2], const float v1[2], float *r_lambda, float *r_u); +bool isect_ray_seg_v3( + const float ray_origin[3], const float ray_direction[3], + const float v0[3], const float v1[3], + float *r_lambda); + /* point in polygon */ bool isect_point_poly_v2(const float pt[2], const float verts[][2], const unsigned int nr, const bool use_holes); bool isect_point_poly_v2_int(const int pt[2], const int verts[][2], const unsigned int nr, const bool use_holes); |