Jump to content
  • Advertisement
Sign in to follow this  
Khaosifix

Will Microsoft sue me if.............

This topic is 4931 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
Quote:
Original post by Khaosifix
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


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.

Share this post


Link to post
Share on other sites
Quote:
Original post by Khaosifix
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


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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!