Skip to content

Commit 2d28008

Browse files
authored
revert unneeded static_cast<T>s
Signed-off-by: Steve Peters <scpeters@intrinsic.ai>
1 parent 54c14a0 commit 2d28008

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/gz/math/Line2.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ namespace gz::math
6767
/// \param[in] _y2 Y coordinate of the end point.
6868
public: void Set(T _x1, T _y1, T _x2, T _y2)
6969
{
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));
70+
this->pts[0].Set(_x1, _y1);
71+
this->pts[1].Set(_x2, _y2);
7272
}
7373

7474
/// \brief Return the cross product of this line and the given line.

0 commit comments

Comments
 (0)