Will Microsoft sue me if.............
My math library somewhat resembles D3DXMath? You see I have a giant namespace and inside of are classes(P3DXMATRIX, P3DXVECTOR3, and P3DXQUATERNION) and as you could see their names are similar to those of D3DXMath. I suppose the similarity stops there since D3DXMath doesn't use a namespace and I have some functions that D3DXMath doesn't have...(ie: friend ostream& P3DXVECTOR3::operator<<(std::ostream& o, P3DXVECTOR3 CONST& p_vParam) ).
Quote:Original post by C-Junkie
Did you copy any code from them?
If not, then no.
If yes, then maybe if they care about you.
Why would I copy code from them? Then it wouldn't really be my math library. It would just be a clone and I wouldn't learn anything.
btw,
P3DX = Pragmatist or Pragmatic[still deciding] X
Quote:Original post by KhaosifixQuote:Original post by C-Junkie
Did you copy any code from them?
If not, then no.
If yes, then maybe if they care about you.
Why would I copy code from them? Then it wouldn't really be my math library. It would just be a clone and I wouldn't learn anything.
btw,
P3DX = Pragmatist or Pragmatic[still deciding] X
Even if you had access to their code, I doubt you could copy all of it, seeing how it is tightly integrated, and super optimized. Directx is the one side of MS where there is no .NET style safety. Built for speed. Period.
Quote:Original post by Khaosifix
btw,
P3DX = Pragmatist or Pragmatic[still deciding] X
my £0.02 - Pragmatic,
Quote:Original post by KhaosifixQuote:Original post by C-Junkie
Did you copy any code from them?
If not, then no.
If yes, then maybe if they care about you.
Why would I copy code from them? Then it wouldn't really be my math library. It would just be a clone and I wouldn't learn anything.
btw,
P3DX = Pragmatist or Pragmatic[still deciding] X
IMHO, it's more readable not to prefix names in this way. Especially when you can set up your namespace hierarchy as you wish to indicate ownership, for example you could do
namespace Pragmatic{ namespace Maths { public class Vector3 { } public class Matrix { } // etc. }}
Then the prefix is implied by the namespace naming, but the actual classes have simple easily understandable names.
On the point of capitalisation, generally usgin all caps makes things harder to read, for classes pascal case rules are usually applied. But, if you prefer all caps then it makes sense to use all caps.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement