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

Poll

Which names do you like the most?

Vector2f / Rectf / Vector2i / Recti
24 (58.5%)
Vector2F / RectF / Vector2I / RectI
2 (4.9%)
Vector2F / RectangleF / Vector2I / RectangleI
1 (2.4%)
FloatVector2 / FloatRect / IntVector2 / IntRect
2 (4.9%)
Don't change it please!
9 (22%)
I have something else to suggest
3 (7.3%)

Total Members Voted: 40

Voting closed: June 24, 2009, 06:22:05 pm

Author Topic: Vector2f vs FloatRect  (Read 20832 times)

0 Members and 2 Guests are viewing this topic.

nitram_cero

  • Full Member
  • ***
  • Posts: 166
    • View Profile
Vector2f vs FloatRect
« Reply #30 on: July 06, 2009, 10:37:29 pm »
Yes, but all the API starts with capitals. It would be incongruent to start without caps.
But float, int, double are lower case, so 2f seems better that 2F (I stress out the point about "2D" being 2-dimensions, and "2d" being 2-double-params, in OpenGL)


Quote from: "Ceylo"

Quote from: "nitram_cero "
I like the current Vector/Rect notation because is verbose as the rest of the library functions (But not in an extreme way).

So don't you think it should be Vector/Rectangle (or Frame ?) ? It does look more logical to me.

Vector2f/Rectanglef is ok, yes. But I'm actually a conservative person...until stuff fails on me.
The "If it ain't broke, don't fix it" deal.

TheMiss

  • Newbie
  • *
  • Posts: 9
    • View Profile
Vector2f vs FloatRect
« Reply #31 on: December 27, 2009, 10:14:00 am »
Honestly, I have never found Recti, Rectf, RectI, RectF, Rectanglei, etc..

on other lib.

And it would be awkward if SFML changing original ones to those.

 :wink: