Fix grammar in docs

This commit is contained in:
Chris Thrasher 2025-01-01 10:25:30 -07:00
parent 796592edae
commit 7ea7622ae3
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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.