Size and Point data types.

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

maxim
Just popping in
Just popping in
Posts: 10
Joined: Wed Mar 07, 2007 05:09

Size and Point data types.

Postby maxim » Wed Mar 07, 2007 08:52

I wish there wouldn't be separate types for size and point data. They are both just 2D-vectors after all so why bother? How about using HLSL-style naming conventions instead, as they're getting increasingly popular.

Size -> float2
Point -> float2
----
float2 temp(0.1f,0.1f);

float x=temp[0];
float y=temp[1];
//and or
float x=temp.x;
float y=temp.y;


Cheers

LennyH
Quite a regular
Quite a regular
Posts: 92
Joined: Thu Nov 30, 2006 20:50

Postby LennyH » Mon Mar 12, 2007 13:56

You can just use UVector2. But readability is better when you use self describing naming conventions...


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 14 guests