TechDraw: Radius drawing refactored - ASME support

This commit is contained in:
Tomas Pavlicek
2019-08-21 21:43:08 +02:00
committed by WandererFan
parent 93b5481c68
commit 46c73062ff
9 changed files with 413 additions and 316 deletions

View File

@@ -65,6 +65,7 @@ public:
inline bool operator== (const Vector2d &rclVct) const;
inline Vector2d operator+ (const Vector2d &rclVct) const;
inline Vector2d operator- (const Vector2d &rclVct) const;
inline Vector2d operator* (double c) const;
inline Vector2d operator/ (double c) const;
inline void Set (double fPX, double fPY);
@@ -238,6 +239,16 @@ inline double Vector2d::operator* (const Vector2d &rclVct) const
return (x * rclVct.x) + (y * rclVct.y);
}
inline Vector2d operator* (double c, const Vector2d &rclVct)
{
return Vector2d(c * rclVct.x, c * rclVct.y);
}
inline Vector2d Vector2d::operator* (double c) const
{
return Vector2d(c * x, c * y);
}
inline Vector2d Vector2d::operator/ (double c) const
{
return Vector2d(x / c, y / c);