OrcaSlicer latest
OrcaSlicer
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 )
263{
264 return Int128::sign_determinant_2x2_filtered(v1.x(), v1.y(), v2.x(), v2.y());
265}
static int sign_determinant_2x2_filtered(int64_t a11, int64_t a12, int64_t a21, int64_t a22)
Definition Int128.hpp:260

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 )
256{
257 Slic3r::Vector v1(p2 - p1);
258 Slic3r::Vector v2(p3 - p1);
259 return Int128::sign_determinant_2x2_filtered(v1.x(), v1.y(), v2.x(), v2.y());
260}
Point Vector
Definition Point.hpp:42

References Int128::sign_determinant_2x2_filtered().

Here is the call graph for this function: