There was an error while loading. Please reload this page.
static_cast<T>
1 parent 54c14a0 commit 2d28008Copy full SHA for 2d28008
1 file changed
include/gz/math/Line2.hh
@@ -67,8 +67,8 @@ namespace gz::math
67
/// \param[in] _y2 Y coordinate of the end point.
68
public: void Set(T _x1, T _y1, T _x2, T _y2)
69
{
70
- this->pts[0].Set(static_cast<T>(_x1), static_cast<T>(_y1));
71
- this->pts[1].Set(static_cast<T>(_x2), static_cast<T>(_y2));
+ this->pts[0].Set(_x1, _y1);
+ this->pts[1].Set(_x2, _y2);
72
}
73
74
/// \brief Return the cross product of this line and the given line.
0 commit comments