22 float div = (
v2[0] -
v1[0]) * (v4[1] - v3[1]) - (
v2[1] -
v1[1]) * (v4[0] - v3[0]);
28 ans.
lambda = ((
v1[1] - v3[1]) * (v4[0] - v3[0]) - (
v1[0] - v3[0]) * (v4[1] - v3[1])) / div;
29 float mu = ((
v1[1] - v3[1]) * (
v2[0] -
v1[0]) - (
v1[0] - v3[0]) * (
v2[1] -
v1[1])) / div;
30 if (ans.
lambda >= 0.0f && ans.
lambda <= 1.0f && mu >= 0.0f && mu <= 1.0f) {
31 if (ans.
lambda == 0.0f || ans.
lambda == 1.0f || mu == 0.0f || mu == 1.0f) {
52 double div = (
v2[0] -
v1[0]) * (v4[1] - v3[1]) - (
v2[1] -
v1[1]) * (v4[0] - v3[0]);
58 ans.
lambda = ((
v1[1] - v3[1]) * (v4[0] - v3[0]) - (
v1[0] - v3[0]) * (v4[1] - v3[1])) / div;
59 double mu = ((
v1[1] - v3[1]) * (
v2[0] -
v1[0]) - (
v1[0] - v3[0]) * (
v2[1] -
v1[1])) / div;
60 if (ans.
lambda >= 0.0 && ans.
lambda <= 1.0 && mu >= 0.0 && mu <= 1.0) {
61 if (ans.
lambda == 0.0 || ans.
lambda == 1.0 || mu == 0.0 || mu == 1.0) {
77 isect_result<mpq2>
isect_seg_seg(
const mpq2 &
v1,
const mpq2 &
v2,
const mpq2 &v3,
const mpq2 &v4)
79 isect_result<mpq2> ans;
80 mpq_class div = (
v2[0] -
v1[0]) * (v4[1] - v3[1]) - (
v2[1] -
v1[1]) * (v4[0] - v3[0]);
86 ans.lambda = ((
v1[1] - v3[1]) * (v4[0] - v3[0]) - (
v1[0] - v3[0]) * (v4[1] - v3[1])) / div;
88 mpq_class mudiv = ((
v1[1] - v3[1]) * (
v2[0] -
v1[0]) - (
v1[0] - v3[0]) * (
v2[1] -
v1[1]));
89 if (ans.lambda >= 0 && ans.lambda <= 1 &&
90 ((div > 0 && mudiv >= 0 && mudiv <= div) || (div < 0 && mudiv <= 0 && mudiv >= div))) {
91 if (ans.lambda == 0 || ans.lambda == 1 || mudiv == 0 || mudiv == div) {
108 uint64_t hash_mpq_class(
const mpq_class &value)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble v1
ATTR_WARN_UNUSED_RESULT const BMVert * v2
isect_result< vec_base< T, Size > > isect_seg_seg(const vec_base< T, Size > &v1, const vec_base< T, Size > &v2, const vec_base< T, Size > &v3, const vec_base< T, Size > &v4)
uint64_t get_default_hash(const T &v)
unsigned __int64 uint64_t
enum blender::math::isect_result::@118 kind