Min() public static method

public static Min ( float value1, float value2 ) : float
value1 float
value2 float
return float
コード例 #1
0
ファイル: Vector2.cs プロジェクト: snowfox1939/PyriteServer
 public static void Min(ref Vector2 value1, ref Vector2 value2, out Vector2 result)
 {
     result = new Vector2(
         MathHelper.Min(value1.X, value2.X),
         MathHelper.Min(value1.Y, value2.Y));
 }
コード例 #2
0
ファイル: Vector3.cs プロジェクト: play3577/PixelVision8
 /// <summary>
 /// Creates a new <see cref="Vector3"/> that contains a minimal values from the two vectors.
 /// </summary>
 /// <param name="value1">The first vector.</param>
 /// <param name="value2">The second vector.</param>
 /// <param name="result">The <see cref="Vector3"/> with minimal values from the two vectors as an output parameter.</param>
 public static void Min(ref Vector3 value1, ref Vector3 value2, out Vector3 result)
 {
     result.X = MathHelper.Min(value1.X, value2.X);
     result.Y = MathHelper.Min(value1.Y, value2.Y);
     result.Z = MathHelper.Min(value1.Z, value2.Z);
 }
コード例 #3
0
ファイル: Vector2.cs プロジェクト: snowfox1939/PyriteServer
 public static Vector2 Min(Vector2 value1, Vector2 value2)
 {
     return(new Vector2(
                MathHelper.Min(value1.X, value2.X),
                MathHelper.Min(value1.Y, value2.Y)));
 }
コード例 #4
0
 public static void Min(ref Vector4 value1, ref Vector4 value2, out Vector4 result)
 {
     result = new Vector4(MathHelper.Min(value1.X, value2.X), MathHelper.Min(value1.Y, value2.Y), MathHelper.Min(value1.Z, value2.Z), MathHelper.Min(value1.W, value2.W));
 }
コード例 #5
0
 public static Vector4 Min(Vector4 value1, Vector4 value2)
 {
     return(new Vector4(MathHelper.Min(value1.X, value2.X), MathHelper.Min(value1.Y, value2.Y), MathHelper.Min(value1.Z, value2.Z), MathHelper.Min(value1.W, value2.W)));
 }
コード例 #6
0
ファイル: Vector3.cs プロジェクト: conankzhang/fez
 public static Vector3 Min(Vector3 value1, Vector3 value2)
 {
     return(new Vector3(MathHelper.Min(value1.X, value2.X), MathHelper.Min(value1.Y, value2.Y), MathHelper.Min(value1.Z, value2.Z)));
 }
コード例 #7
0
 public static void Min(ref Vector2 value1, ref Vector2 value2, out Vector2 result)
 {
     result = new Vector2(
         MathHelper.Min(value1.x, value2.x),
         MathHelper.Min(value1.y, value2.y));
 }
コード例 #8
0
 public static Vector2 Min(Vector2 value1, Vector2 value2)
 {
     return(new Vector2(
                MathHelper.Min(value1.x, value2.x),
                MathHelper.Min(value1.y, value2.y)));
 }