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:
parent
0f0095091b
commit
a0c9a42dbf
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue