libslic3r
Library for generating gcode from 3d models
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Slic3r::Pointf Class Reference

#include <Point.hpp>

Inheritance diagram for Slic3r::Pointf:
Slic3r::Pointf3

Public Member Functions

constexpr Pointf (coordf_t _x=0, coordf_t _y=0)
 
bool operator== (const Pointf &rhs) const
 
bool coincides_with_epsilon (const Pointf &rhs) const
 
Pointfoperator/= (const double &scalar)
 
std::string wkt () const
 
std::string dump_perl () const
 
void scale (double factor)
 
void translate (double x, double y)
 
void translate (const Vectorf &vector)
 
void rotate (double angle)
 
void rotate (double angle, const Pointf &center)
 
Pointf negative () const
 
Vectorf vector_to (const Pointf &point) const
 

Static Public Member Functions

static constexpr Pointf new_unscale (coord_t x, coord_t y)
 
static constexpr Pointf new_unscale (const Point &p)
 

Public Attributes

coordf_t x
 
coordf_t y
 

Constructor & Destructor Documentation

◆ Pointf()

constexpr Slic3r::Pointf::Pointf ( coordf_t  _x = 0,
coordf_t  _y = 0 
)
inlineexplicit

Member Function Documentation

◆ coincides_with_epsilon()

bool Slic3r::Pointf::coincides_with_epsilon ( const Pointf rhs) const

◆ dump_perl()

std::string Slic3r::Pointf::dump_perl ( ) const

◆ negative()

Pointf Slic3r::Pointf::negative ( ) const

◆ new_unscale() [1/2]

static constexpr Pointf Slic3r::Pointf::new_unscale ( coord_t  x,
coord_t  y 
)
inlinestatic

◆ new_unscale() [2/2]

static constexpr Pointf Slic3r::Pointf::new_unscale ( const Point p)
inlinestatic

◆ operator/=()

Pointf & Slic3r::Pointf::operator/= ( const double &  scalar)

◆ operator==()

bool Slic3r::Pointf::operator== ( const Pointf rhs) const

◆ rotate() [1/2]

void Slic3r::Pointf::rotate ( double  angle)

◆ rotate() [2/2]

void Slic3r::Pointf::rotate ( double  angle,
const Pointf center 
)

◆ scale()

void Slic3r::Pointf::scale ( double  factor)

◆ translate() [1/2]

void Slic3r::Pointf::translate ( double  x,
double  y 
)

◆ translate() [2/2]

void Slic3r::Pointf::translate ( const Vectorf vector)

◆ vector_to()

Vectorf Slic3r::Pointf::vector_to ( const Pointf point) const

◆ wkt()

std::string Slic3r::Pointf::wkt ( ) const

Member Data Documentation

◆ x

coordf_t Slic3r::Pointf::x

◆ y

coordf_t Slic3r::Pointf::y

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