TechDraw: Radius drawing refactored - ASME support
This commit is contained in:
committed by
WandererFan
parent
93b5481c68
commit
46c73062ff
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user