[Mono-dev] Mono.Simd suggestion: Add static members for common values

Hurliman, John john.hurliman at intel.com
Thu Nov 6 18:58:33 EST 2008

I'm in the process of converting over my OpenMetaverseTypes.dll library (basic 3D type library) to use Mono.Simd. One thing that is very handy to have is static members for common values, such as:

public static readonly Vector4f Zero = new Vector4f();
public static readonly Vector4f One = new Vector4f(1f, 1f, 1f, 1f);
public static readonly Vector4f MinusOne = new Vector4f(-1f, -1f, -1f, -1f);

Which makes comparisons much easier:

if (myvector4f == Vector4f.Zero) { ... }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20081106/14cab012/attachment.html 

More information about the Mono-devel-list mailing list