Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::Line3 Class Reference

#include <src/libslic3r/Line.hpp>

+ Collaboration diagram for Slic3r::Line3:

Public Types

using Scalar = Vec3crd::Scalar
 

Public Member Functions

 Line3 ()
 
 Line3 (const Vec3crd &_a, const Vec3crd &_b)
 
double length () const
 
Vec3crd vector () const
 

Public Attributes

Vec3crd a
 
Vec3crd b
 

Static Public Attributes

static const constexpr int Dim = 3
 

Detailed Description

Member Typedef Documentation

◆ Scalar

Constructor & Destructor Documentation

◆ Line3() [1/2]

Slic3r::Line3::Line3 ( )
inline
229: a(Vec3crd::Zero()), b(Vec3crd::Zero()) {}
Vec3crd a
Definition Line.hpp:235
Vec3crd b
Definition Line.hpp:236

◆ Line3() [2/2]

Slic3r::Line3::Line3 ( const Vec3crd _a,
const Vec3crd _b 
)
inline
230: a(_a), b(_b) {}
Vec3crd vector() const
Definition Line.hpp:233

Member Function Documentation

◆ length()

double Slic3r::Line3::length ( ) const
inline
232{ return (this->a - this->b).cast<double>().norm(); }

References a, and b.

Referenced by Slic3r::thick_lines_to_geometry().

+ Here is the caller graph for this function:

◆ vector()

Vec3crd Slic3r::Line3::vector ( ) const
inline
233{ return this->b - this->a; }

References a, and b.

Referenced by Slic3r::thick_lines_to_geometry().

+ Here is the caller graph for this function:

Member Data Documentation

◆ a

Vec3crd Slic3r::Line3::a

◆ b

Vec3crd Slic3r::Line3::b

◆ Dim

const constexpr int Slic3r::Line3::Dim = 3
staticconstexpr

The documentation for this class was generated from the following file: