mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
csg2d - proper +=/-=/*= operator
This commit is contained in:
parent
ab34a185ce
commit
ac87e9b62c
@ -1380,19 +1380,19 @@ Solid2d Solid2d :: operator-(const Solid2d & other_) const
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
Solid2d Solid2d :: operator+=(const Solid2d & other)
|
Solid2d & Solid2d :: operator+=(const Solid2d & other)
|
||||||
{
|
{
|
||||||
*this = *this + other;
|
*this = *this + other;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
Solid2d Solid2d :: operator*=(const Solid2d & other)
|
Solid2d & Solid2d :: operator*=(const Solid2d & other)
|
||||||
{
|
{
|
||||||
*this = *this * other;
|
*this = *this * other;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
Solid2d Solid2d :: operator-=(const Solid2d & other)
|
Solid2d & Solid2d :: operator-=(const Solid2d & other)
|
||||||
{
|
{
|
||||||
*this = *this - other;
|
*this = *this - other;
|
||||||
return *this;
|
return *this;
|
||||||
|
@ -575,9 +575,9 @@ struct Solid2d
|
|||||||
Solid2d operator-(const Solid2d & other) const;
|
Solid2d operator-(const Solid2d & other) const;
|
||||||
|
|
||||||
Solid2d& operator=(const Solid2d & other) = default;
|
Solid2d& operator=(const Solid2d & other) = default;
|
||||||
Solid2d operator+=(const Solid2d & other);
|
Solid2d& operator+=(const Solid2d & other);
|
||||||
Solid2d operator*=(const Solid2d & other);
|
Solid2d& operator*=(const Solid2d & other);
|
||||||
Solid2d operator-=(const Solid2d & other);
|
Solid2d& operator-=(const Solid2d & other);
|
||||||
|
|
||||||
void Append( const Loop & poly )
|
void Append( const Loop & poly )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user