~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to extern/eltopo/common/collisionqueries.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef COLLISIONQUERIES_H
2
 
#define COLLISIONQUERIES_H
3
 
 
4
 
#include <vec.h>
5
 
 
6
 
// 2D ====================================================================================================
7
 
 
8
 
 
9
 
void check_point_edge_proximity(bool update, const Vec2d &x0, const Vec2d &x1, const Vec2d &x2,
10
 
                                double &distance);
11
 
 
12
 
void check_point_edge_proximity(bool update, const Vec2d &x0, const Vec2d &x1, const Vec2d &x2,
13
 
                                double &distance, double &s, Vec2d &normal, double normal_multiplier);
14
 
 
15
 
// 3D ====================================================================================================
16
 
 
17
 
void check_point_edge_proximity(bool update, const Vec3d &x0, const Vec3d &x1, const Vec3d &x2,
18
 
                                double &distance);
19
 
void check_point_edge_proximity(bool update, const Vec3d &x0, const Vec3d &x1, const Vec3d &x2,
20
 
                                double &distance, double &s, Vec3d &normal, double normal_multiplier);
21
 
 
22
 
void check_edge_edge_proximity(const Vec3d &x0, const Vec3d &x1, const Vec3d &x2, const Vec3d &x3,
23
 
                               double &distance);
24
 
void check_edge_edge_proximity(const Vec3d &x0, const Vec3d &x1, const Vec3d &x2, const Vec3d &x3,
25
 
                               double &distance, double &s0, double &s2, Vec3d &normal);
26
 
 
27
 
void check_point_triangle_proximity(const Vec3d &x0, const Vec3d &x1, const Vec3d &x2, const Vec3d &x3,
28
 
                                    double &distance);
29
 
void check_point_triangle_proximity(const Vec3d &x0, const Vec3d &x1, const Vec3d &x2, const Vec3d &x3,
30
 
                                    double &distance, double &s1, double &s2, double &s3, Vec3d &normal);
31
 
 
32
 
 
33
 
double signed_volume(const Vec3d &x0, const Vec3d &x1, const Vec3d &x2, const Vec3d &x3);
34
 
 
35
 
 
36
 
#endif