Lines Matching refs:x1
31 static inline float getSquaredDistanceFloat(float x1, float y1, float x2, float y2) { in getSquaredDistanceFloat() argument
32 const float deltaX = x1 - x2; in getSquaredDistanceFloat()
37 static inline float getDistanceFloat(float x1, float y1, float x2, float y2) { in getDistanceFloat() argument
38 return hypotf(x1 - x2, y1 - y2); in getDistanceFloat()
41 static inline int getDistanceInt(int x1, int y1, int x2, int y2) { in getDistanceInt() argument
42 return static_cast<int>(getDistanceFloat(static_cast<float>(x1), static_cast<float>(y1), in getDistanceInt()
46 static inline float getAngle(int x1, int y1, int x2, int y2) { in getAngle() argument
47 const int dx = x1 - x2; in getAngle()
64 float x, float y, float x1, float y1, float x2, float y2, bool extend) { in pointToLineSegSquaredDistanceFloat() argument
65 const float ray1x = x - x1; in pointToLineSegSquaredDistanceFloat()
67 const float ray2x = x2 - x1; in pointToLineSegSquaredDistanceFloat()
77 projectionX = x1; in pointToLineSegSquaredDistanceFloat()
83 projectionX = x1 + projectionLengthSqr * ray2x; in pointToLineSegSquaredDistanceFloat()