DRW_Coord: Simplify constructor.
This commit is contained in:
parent
c7fc0b8dcb
commit
b18f09d86e
|
@ -216,11 +216,7 @@ static inline bool DRW_FuzzyComparePossibleNulls(double p1, double p2)
|
||||||
*/
|
*/
|
||||||
class DRW_Coord {
|
class DRW_Coord {
|
||||||
public:
|
public:
|
||||||
DRW_Coord()
|
DRW_Coord() = default;
|
||||||
: x(0),
|
|
||||||
y(0),
|
|
||||||
z(0)
|
|
||||||
{}
|
|
||||||
DRW_Coord(double ix, double iy, double iz)
|
DRW_Coord(double ix, double iy, double iz)
|
||||||
: x(ix),
|
: x(ix),
|
||||||
y(iy),
|
y(iy),
|
||||||
|
@ -257,9 +253,9 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
double x;
|
double x {0};
|
||||||
double y;
|
double y {0};
|
||||||
double z;
|
double z {0};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user