Fix findIntersection documentation
This commit is contained in:
parent
8f1955af17
commit
0c8c35fa0c
@ -220,9 +220,9 @@ using FloatRect = Rect<float>;
|
|||||||
/// bool b2 = r2.contains(3, 1); // false
|
/// bool b2 = r2.contains(3, 1); // false
|
||||||
///
|
///
|
||||||
/// // Test the intersection between r1 and r2
|
/// // Test the intersection between r1 and r2
|
||||||
/// sf::IntRect result;
|
/// std::optional<sf::IntRect> result = r1.findIntersection(r2);
|
||||||
/// bool b3 = r1.findIntersection(r2, result); // true
|
/// // result.has_value() == true
|
||||||
/// // result == (4, 2, 16, 3)
|
/// // result.value() == (4, 2, 16, 3)
|
||||||
/// \endcode
|
/// \endcode
|
||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user