From 7ea7622ae3186bd6c31ce44c84bc15c7833907b0 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Wed, 1 Jan 2025 10:25:30 -0700 Subject: [PATCH] Fix grammar in docs --- include/SFML/Graphics/Transformable.hpp | 4 ++-- include/SFML/Graphics/View.hpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/SFML/Graphics/Transformable.hpp b/include/SFML/Graphics/Transformable.hpp index a6d7be65b..af7e25382 100644 --- a/include/SFML/Graphics/Transformable.hpp +++ b/include/SFML/Graphics/Transformable.hpp @@ -271,7 +271,7 @@ private: /// provides an "origin" component, which represents the local origin /// of the three other components. Let's take an example with a 10x10 /// pixels sprite. By default, the sprite is positioned/rotated/scaled -/// relatively to its top-left corner, because it is the local point +/// relative to its top-left corner, because it is the local point /// (0, 0). But if we change the origin to be (5, 5), the sprite will /// be positioned/rotated/scaled around its center instead. And if /// we set the origin to (10, 10), it will be transformed around its @@ -279,7 +279,7 @@ private: /// /// To keep the `sf::Transformable` class simple, there's only one /// origin for all the components. You cannot position the sprite -/// relatively to its top-left corner while rotating it around its +/// relative to its top-left corner while rotating it around its /// center, for example. To do such things, use `sf::Transform` directly. /// /// `sf::Transformable` can be used as a base class. It is often diff --git a/include/SFML/Graphics/View.hpp b/include/SFML/Graphics/View.hpp index 450973f0c..d44007ef1 100644 --- a/include/SFML/Graphics/View.hpp +++ b/include/SFML/Graphics/View.hpp @@ -194,7 +194,7 @@ public: [[nodiscard]] const FloatRect& getScissor() const; //////////////////////////////////////////////////////////// - /// \brief Move the view relatively to its current position + /// \brief Move the view relative to its current position /// /// \param offset Move offset /// @@ -204,7 +204,7 @@ public: void move(Vector2f offset); //////////////////////////////////////////////////////////// - /// \brief Rotate the view relatively to its current orientation + /// \brief Rotate the view relative to its current orientation /// /// \param angle Angle to rotate /// @@ -214,7 +214,7 @@ public: void rotate(Angle angle); //////////////////////////////////////////////////////////// - /// \brief Resize the view rectangle relatively to its current size + /// \brief Resize the view rectangle relative to its current size /// /// Resizing the view simulates a zoom, as the zone displayed on /// screen grows or shrinks.