OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
marchsq::Coord Struct Reference

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

Public Member Functions

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

Public Attributes

long r = 0
long c = 0

Detailed Description

Constructor & Destructor Documentation

◆ Coord() [1/3]

marchsq::Coord::Coord ( )
default

Referenced by operator!=(), operator+(), operator+=(), operator==(), and seq().

Here is the caller graph for this function:

◆ Coord() [2/3]

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

References c, and r.

◆ Coord() [3/3]

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

References c, and r.

Member Function Documentation

◆ operator!=()

bool marchsq::Coord::operator!= ( const Coord & o) const
inline
116{ return !(*this == o); }

References Coord().

Here is the call graph for this function:

◆ operator+()

Coord marchsq::Coord::operator+ ( const Coord & b) const
inline
110 {
111 Coord a = *this;
112 a += b;
113 return a;
114 }
Coord()=default

References Coord().

Here is the call graph for this function:

◆ operator+=()

Coord & marchsq::Coord::operator+= ( const Coord & b)
inline
104 {
105 r += b.r;
106 c += b.c;
107 return *this;
108 }

References Coord(), c, and r.

Here is the call graph for this function:

◆ operator==()

bool marchsq::Coord::operator== ( const Coord & o) const
inline
115{ return (r == o.r) && (c == o.c); }

References Coord(), c, and r.

Here is the call graph for this function:

◆ seq()

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

References Coord(), c, and r.

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

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

Member Data Documentation

◆ c

◆ r


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