Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
marchsq::Coord Struct Reference

#include <src/libslic3r/MarchingSquares.hpp>

Public Member Functions

 Coord ()=default
 
 Coord (long s)
 
 Coord (long _r, long _c)
 
size_t seq (const Coord &res) const
 
Coordoperator+= (const Coord &b)
 
Coord operator+ (const Coord &b) const
 

Public Attributes

long r = 0
 
long c = 0
 

Detailed Description

Constructor & Destructor Documentation

◆ Coord() [1/3]

marchsq::Coord::Coord ( )
default

◆ Coord() [2/3]

marchsq::Coord::Coord ( long  s)
inlineexplicit
17: r(s), c(s) {}
long c
Definition MarchingSquares.hpp:14
long r
Definition MarchingSquares.hpp:14

◆ Coord() [3/3]

marchsq::Coord::Coord ( long  _r,
long  _c 
)
inline
18: r(_r), c(_c) {}

Member Function Documentation

◆ operator+()

Coord marchsq::Coord::operator+ ( const Coord b) const
inline

◆ operator+=()

Coord & marchsq::Coord::operator+= ( const Coord b)
inline
21{ r += b.r; c += b.c; return *this; }

References c, and r.

◆ seq()

size_t marchsq::Coord::seq ( const Coord res) const
inline
20{ return r * res.c + c; }

References c, and r.

Referenced by marchsq::__impl::Grid< Rst >::seq().

+ Here is the caller graph for this function:

Member Data Documentation

◆ c

◆ r


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