diff --git a/Source/OpenTK/Math/Vector2.cs b/Source/OpenTK/Math/Vector2.cs
index 66a0b746..f2fbc672 100644
--- a/Source/OpenTK/Math/Vector2.cs
+++ b/Source/OpenTK/Math/Vector2.cs
@@ -104,7 +104,7 @@ namespace OpenTK
/// Add the Vector passed as parameter to this instance.
/// Right operand. This parameter is only read from.
- public void Add( Vector2 right )
+ public void Add(Vector2 right)
{
this.X += right.X;
this.Y += right.Y;
@@ -113,7 +113,7 @@ namespace OpenTK
/// Add the Vector passed as parameter to this instance.
/// Right operand. This parameter is only read from.
[CLSCompliant(false)]
- public void Add( ref Vector2 right )
+ public void Add(ref Vector2 right)
{
this.X += right.X;
this.Y += right.Y;
@@ -125,7 +125,7 @@ namespace OpenTK
/// Subtract the Vector passed as parameter from this instance.
/// Right operand. This parameter is only read from.
- public void Sub( Vector2 right )
+ public void Sub(Vector2 right)
{
this.X -= right.X;
this.Y -= right.Y;
@@ -134,7 +134,7 @@ namespace OpenTK
/// Subtract the Vector passed as parameter from this instance.
/// Right operand. This parameter is only read from.
[CLSCompliant(false)]
- public void Sub( ref Vector2 right )
+ public void Sub(ref Vector2 right)
{
this.X -= right.X;
this.Y -= right.Y;
@@ -144,9 +144,10 @@ namespace OpenTK
#region public void Mult()
+ [Obsolete]
/// Multiply this instance by a scalar.
/// Scalar operand.
- public void Mult( float f )
+ public void Mult(float f)
{
this.X *= f;
this.Y *= f;
@@ -158,7 +159,7 @@ namespace OpenTK
/// Divide this instance by a scalar.
/// Scalar operand.
- public void Div( float f )
+ public void Div(float f)
{
float mult = 1.0f / f;
this.X *= mult;
@@ -299,7 +300,7 @@ namespace OpenTK
/// Scales this instance by the given parameter.
/// The scaling of the individual components.
- public void Scale( Vector2 scale )
+ public void Scale(Vector2 scale)
{
this.X *= scale.X;
this.Y *= scale.Y;
@@ -308,7 +309,7 @@ namespace OpenTK
/// Scales this instance by the given parameter.
/// The scaling of the individual components.
[CLSCompliant(false)]
- public void Scale( ref Vector2 scale )
+ public void Scale(ref Vector2 scale)
{
this.X *= scale.X;
this.Y *= scale.Y;
@@ -341,7 +342,7 @@ namespace OpenTK
/// Defines an instance with all components set to 1.
///
public static readonly Vector2 One = new Vector2(1, 1);
-
+
///
/// Defines the size of the Vector2 struct in bytes.
///
@@ -663,7 +664,7 @@ namespace OpenTK
/// First operand
/// Second operand
/// The dot product of the two inputs
- public static void Dot( ref Vector2 left, ref Vector2 right, out float result )
+ public static void Dot(ref Vector2 left, ref Vector2 right, out float result)
{
result = left.X * right.X + left.Y * right.Y;
}
@@ -693,10 +694,10 @@ namespace OpenTK
/// Second input vector
/// The blend factor. a when blend=0, b when blend=1.
/// a when blend=0, b when blend=1, and a linear combination otherwise
- public static void Lerp( ref Vector2 a, ref Vector2 b, float blend, out Vector2 result )
+ public static void Lerp(ref Vector2 a, ref Vector2 b, float blend, out Vector2 result)
{
- result.X = blend * ( b.X - a.X ) + a.X;
- result.Y = blend * ( b.Y - a.Y ) + a.Y;
+ result.X = blend * (b.X - a.X) + a.X;
+ result.Y = blend * (b.Y - a.Y) + a.Y;
}
#endregion
@@ -724,19 +725,19 @@ namespace OpenTK
/// First Barycentric Coordinate.
/// Second Barycentric Coordinate.
/// Output Vector. a when u=v=0, b when u=1,v=0, c when u=0,v=1, and a linear combination of a,b,c otherwise
- public static void BaryCentric( ref Vector2 a, ref Vector2 b, ref Vector2 c, float u, float v, out Vector2 result )
+ public static void BaryCentric(ref Vector2 a, ref Vector2 b, ref Vector2 c, float u, float v, out Vector2 result)
{
result = a; // copy
Vector2 temp = b; // copy
- temp.Sub( ref a );
- temp.Mult( u );
- result.Add( ref temp );
+ temp.Sub(ref a);
+ temp.Mult(u);
+ result.Add(ref temp);
temp = c; // copy
- temp.Sub( ref a );
- temp.Mult( v );
- result.Add( ref temp );
+ temp.Sub(ref a);
+ temp.Mult(v);
+ result.Add(ref temp);
}
#endregion
diff --git a/Source/OpenTK/Math/Vector4.cs b/Source/OpenTK/Math/Vector4.cs
index 43552c13..0183c217 100644
--- a/Source/OpenTK/Math/Vector4.cs
+++ b/Source/OpenTK/Math/Vector4.cs
@@ -170,7 +170,7 @@ namespace OpenTK
/// Add the Vector passed as parameter to this instance.
/// Right operand. This parameter is only read from.
- public void Add( Vector4 right )
+ public void Add(Vector4 right)
{
this.X += right.X;
this.Y += right.Y;
@@ -181,7 +181,7 @@ namespace OpenTK
/// Add the Vector passed as parameter to this instance.
/// Right operand. This parameter is only read from.
[CLSCompliant(false)]
- public void Add( ref Vector4 right )
+ public void Add(ref Vector4 right)
{
this.X += right.X;
this.Y += right.Y;
@@ -195,7 +195,7 @@ namespace OpenTK
/// Subtract the Vector passed as parameter from this instance.
/// Right operand. This parameter is only read from.
- public void Sub( Vector4 right )
+ public void Sub(Vector4 right)
{
this.X -= right.X;
this.Y -= right.Y;
@@ -206,7 +206,7 @@ namespace OpenTK
/// Subtract the Vector passed as parameter from this instance.
/// Right operand. This parameter is only read from.
[CLSCompliant(false)]
- public void Sub( ref Vector4 right )
+ public void Sub(ref Vector4 right)
{
this.X -= right.X;
this.Y -= right.Y;
@@ -220,7 +220,7 @@ namespace OpenTK
/// Multiply this instance by a scalar.
/// Scalar operand.
- public void Mult( float f )
+ public void Mult(float f)
{
this.X *= f;
this.Y *= f;
@@ -234,7 +234,7 @@ namespace OpenTK
/// Divide this instance by a scalar.
/// Scalar operand.
- public void Div( float f )
+ public void Div(float f)
{
float mult = 1.0f / f;
this.X *= mult;
@@ -345,7 +345,7 @@ namespace OpenTK
/// The scale of the Y component.
/// The scale of the Z component.
/// The scale of the Z component.
- public void Scale( float sx, float sy, float sz, float sw )
+ public void Scale(float sx, float sy, float sz, float sw)
{
this.X = X * sx;
this.Y = Y * sy;
@@ -355,7 +355,7 @@ namespace OpenTK
/// Scales this instance by the given parameter.
/// The scaling of the individual components.
- public void Scale( Vector4 scale )
+ public void Scale(Vector4 scale)
{
this.X *= scale.X;
this.Y *= scale.Y;
@@ -366,7 +366,7 @@ namespace OpenTK
/// Scales this instance by the given parameter.
/// The scaling of the individual components.
[CLSCompliant(false)]
- public void Scale( ref Vector4 scale )
+ public void Scale(ref Vector4 scale)
{
this.X *= scale.X;
this.Y *= scale.Y;
@@ -700,7 +700,7 @@ namespace OpenTK
/// First operand
/// Second operand
/// The dot product of the two inputs
- public static void Dot( ref Vector4 left, ref Vector4 right, out float result )
+ public static void Dot(ref Vector4 left, ref Vector4 right, out float result)
{
result = left.X * right.X + left.Y * right.Y + left.Z * right.Z + left.W * right.W;
}
@@ -732,12 +732,12 @@ namespace OpenTK
/// Second input vector
/// The blend factor. a when blend=0, b when blend=1.
/// a when blend=0, b when blend=1, and a linear combination otherwise
- public static void Lerp( ref Vector4 a, ref Vector4 b, float blend, out Vector4 result )
+ public static void Lerp(ref Vector4 a, ref Vector4 b, float blend, out Vector4 result)
{
- result.X = blend * ( b.X - a.X ) + a.X;
- result.Y = blend * ( b.Y - a.Y ) + a.Y;
- result.Z = blend * ( b.Z - a.Z ) + a.Z;
- result.W = blend * ( b.W - a.W ) + a.W;
+ result.X = blend * (b.X - a.X) + a.X;
+ result.Y = blend * (b.Y - a.Y) + a.Y;
+ result.Z = blend * (b.Z - a.Z) + a.Z;
+ result.W = blend * (b.W - a.W) + a.W;
}
#endregion
@@ -765,19 +765,19 @@ namespace OpenTK
/// First Barycentric Coordinate.
/// Second Barycentric Coordinate.
/// Output Vector. a when u=v=0, b when u=1,v=0, c when u=0,v=1, and a linear combination of a,b,c otherwise
- public static void BaryCentric( ref Vector4 a, ref Vector4 b, ref Vector4 c, float u, float v, out Vector4 result )
+ public static void BaryCentric(ref Vector4 a, ref Vector4 b, ref Vector4 c, float u, float v, out Vector4 result)
{
result = a; // copy
Vector4 temp = b; // copy
- temp.Sub( ref a );
- temp.Mult( u );
- result.Add( ref temp );
+ temp.Sub(ref a);
+ temp.Mult(u);
+ result.Add(ref temp);
temp = c; // copy
- temp.Sub( ref a );
- temp.Mult( v );
- result.Add( ref temp );
+ temp.Sub(ref a);
+ temp.Mult(v);
+ result.Add(ref temp);
}
#endregion
@@ -802,7 +802,7 @@ namespace OpenTK
/// The vector to transform
/// The desired transformation
/// The transformed vector
- public static void Transform( ref Vector4 vec, ref Matrix4 mat, out Vector4 result )
+ public static void Transform(ref Vector4 vec, ref Matrix4 mat, out Vector4 result)
{
result.X = vec.X * mat.Row0.X +
vec.Y * mat.Row1.X +