1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Point: Avoid data-loss warning in Point::getDotProduct

This commit is contained in:
reuk 2024-04-29 15:58:53 +01:00
parent 0f0095091b
commit a0c9a42dbf
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -223,7 +223,7 @@ public:
}
/** Returns the dot-product of two points (x1 * x2 + y1 * y2). */
constexpr FloatType getDotProduct (Point other) const noexcept { return x * other.x + y * other.y; }
constexpr FloatType getDotProduct (Point other) const noexcept { return (FloatType) (x * other.x + y * other.y); }
//==============================================================================
/** Uses a transform to change the point's coordinates.