Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Clarify sf::Shape.getPoints() returns untransformed points  (Read 1435 times)

0 Members and 1 Guest are viewing this topic.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10822
    • View Profile
    • development blog
    • Email
Clarify sf::Shape.getPoints() returns untransformed points
« on: April 02, 2014, 11:58:06 am »
Someone on IRC just asked why the rotation doesn't affect the point list of the CircleShape and upon looking closer, I realized that the points are essentially untransformed points in local space, which makes totally sense, but isn't documented clearly, neither in the documentation nor in the tutorial.

Sure it's kind of obvious and logical, but I think a comment doesn't hurt either, right?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Clarify sf::Shape.getPoints() returns untransformed points
« Reply #1 on: April 02, 2014, 11:59:53 am »
Absolutely!
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Clarify sf::Shape.getPoints() returns untransformed points
« Reply #2 on: April 02, 2014, 12:06:13 pm »
I'll take care of the doc, and Laurent can improve the tutorial ;)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: