OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::Linef Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Line.hpp>

Public Types

using Scalar = Vec2d::Scalar

Public Member Functions

 Linef ()
 Linef (const Vec2d &_a, const Vec2d &_b)
Vec2d vector () const
Vec2d unit_vector () const
double length () const

Public Attributes

Vec2d a
Vec2d b

Static Public Attributes

static const constexpr int Dim = 2

Detailed Description

Member Typedef Documentation

◆ Scalar

using Slic3r::Linef::Scalar = Vec2d::Scalar

Constructor & Destructor Documentation

◆ Linef() [1/2]

Slic3r::Linef::Linef ( )
inline
257: a(Vec2d::Zero()), b(Vec2d::Zero()) {}
Vec2d b
Definition Line.hpp:265
Vec2d a
Definition Line.hpp:264

References a, and b.

◆ Linef() [2/2]

Slic3r::Linef::Linef ( const Vec2d & _a,
const Vec2d & _b )
inline
258: a(_a), b(_b) {}

References a, and b.

Member Function Documentation

◆ length()

double Slic3r::Linef::length ( ) const
inline
262{ return vector().norm(); }
Vec2d vector() const
Definition Line.hpp:260

References vector().

Referenced by Slic3r::contour_extrusion_path(), and unit_vector().

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

◆ unit_vector()

Vec2d Slic3r::Linef::unit_vector ( ) const
inline
261{ return (length() == 0.0) ? Vec2d::Zero() : vector().normalized(); }
double length() const
Definition Line.hpp:262

References length(), and vector().

Here is the call graph for this function:

◆ vector()

Vec2d Slic3r::Linef::vector ( ) const
inline
260{ return this->b - this->a; }

References a, and b.

Referenced by Slic3r::contour_extrusion_path(), length(), and unit_vector().

Here is the caller graph for this function:

Member Data Documentation

◆ a

◆ b

◆ Dim

const constexpr int Slic3r::Linef::Dim = 2
staticconstexpr

The documentation for this class was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Line.hpp