Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::int128 Namespace Reference

Functions

int orient (const Vec2crd &p1, const Vec2crd &p2, const Vec2crd &p3)
 
int cross (const Vec2crd &v1, const Vec2crd &v2)
 

Function Documentation

◆ cross()

int Slic3r::int128::cross ( const Vec2crd v1,
const Vec2crd v2 
)
156{
157 return Int128::sign_determinant_2x2_filtered(v1.x(), v1.y(), v2.x(), v2.y());
158}
static int sign_determinant_2x2_filtered(int64_t a11, int64_t a12, int64_t a21, int64_t a22)
Definition Int128.hpp:265

References Int128::sign_determinant_2x2_filtered().

+ Here is the call graph for this function:

◆ orient()

int Slic3r::int128::orient ( const Vec2crd p1,
const Vec2crd p2,
const Vec2crd p3 
)
149{
150 Slic3r::Vector v1(p2 - p1);
151 Slic3r::Vector v2(p3 - p1);
152 return Int128::sign_determinant_2x2_filtered(v1.x(), v1.y(), v2.x(), v2.y());
153}
Definition Point.hpp:158

References orient(), and Int128::sign_determinant_2x2_filtered().

Referenced by orient().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: