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

#include <Point.hpp>

Inheritance diagram for Slic3r::Point3:
Slic3r::Point

Public Member Functions

constexpr Point3 (coord_t _x=0, coord_t _y=0, coord_t _z=0)
 
bool constexpr coincides_with (const Point3 &point3) const
 
- Public Member Functions inherited from Slic3r::Point
constexpr Point (coord_t _x=0, coord_t _y=0)
 
constexpr Point (int _x, int _y)
 
constexpr Point (long long _x, long long _y)
 
 Point (double x, double y)
 
bool operator== (const Point &rhs) const
 
bool operator!= (const Point &rhs) const
 
std::string wkt () const
 
std::string dump_perl () const
 
void scale (double factor)
 
void translate (double x, double y)
 
void translate (const Vector &vector)
 
void rotate (double angle)
 
void rotate (double angle, const Point &center)
 
Point rotated (double angle) const
 
Point rotated (double angle, const Point &center) const
 
bool coincides_with (const Point &point) const
 
bool coincides_with_epsilon (const Point &point) const
 
int nearest_point_index (const Points &points) const
 
int nearest_point_index (const PointConstPtrs &points) const
 
int nearest_point_index (const PointPtrs &points) const
 
size_t nearest_waypoint_index (const Points &points, const Point &point) const
 
bool nearest_point (const Points &points, Point *point) const
 
bool nearest_waypoint (const Points &points, const Point &dest, Point *point) const
 
double distance_to (const Point &point) const
 
double distance_to (const Line &line) const
 
double perp_distance_to (const Line &line) const
 
double ccw (const Point &p1, const Point &p2) const
 
double ccw (const Line &line) const
 
double ccw_angle (const Point &p1, const Point &p2) const
 
Point projection_onto (const MultiPoint &poly) const
 
Point projection_onto (const Line &line) const
 
Point negative () const
 
Vector vector_to (const Point &point) const
 
void align_to_grid (const Point &spacing, const Point &base=Point(0, 0))
 

Public Attributes

coord_t z
 
- Public Attributes inherited from Slic3r::Point
coord_t x
 
coord_t y
 

Additional Inherited Members

- Static Public Member Functions inherited from Slic3r::Point
static constexpr Point new_scale (coordf_t x, coordf_t y)
 
static Point new_scale (Pointf p)
 Scale and create a Point from a Pointf. More...
 

Constructor & Destructor Documentation

◆ Point3()

constexpr Slic3r::Point3::Point3 ( coord_t  _x = 0,
coord_t  _y = 0,
coord_t  _z = 0 
)
inlineexplicit

Member Function Documentation

◆ coincides_with()

bool constexpr Slic3r::Point3::coincides_with ( const Point3 point3) const
inline

Member Data Documentation

◆ z

coord_t Slic3r::Point3::z

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