示例#1
0
文件: Half3.cs 项目: MNAJIM75/Xacor
 /// <summary>
 /// Initializes a new instance of the <see cref="T:DXPlayground.Mathematics.Half3" /> structure.
 /// </summary>
 /// <param name="x">The X component.</param>
 /// <param name="y">The Y component.</param>
 /// <param name="z">The Z component.</param>
 public Half3(float x, float y, float z)
 {
     X = new Half(x);
     Y = new Half(y);
     Z = new Half(z);
 }
示例#2
0
 /// <summary>
 /// Returns a value that indicates whether the current instance is equal to the specified object.
 /// </summary>
 /// <param name = "other">Object to make the comparison with.</param>
 /// <returns>
 /// <c>true</c> if the current instance is equal to the specified object; <c>false</c> otherwise.</returns>
 public bool Equals(Half other)
 {
     return(other.value == value);
 }
示例#3
0
文件: Half3.cs 项目: MNAJIM75/Xacor
 /// <summary>
 /// Initializes a new instance of the <see cref="T:DXPlayground.Mathematics.Half3" /> structure.
 /// </summary>
 /// <param name="x">The X component.</param>
 /// <param name="y">The Y component.</param>
 /// <param name="z">The Z component.</param>
 public Half3(Half x, Half y, Half z)
 {
     X = x;
     Y = y;
     Z = z;
 }
示例#4
0
 public static bool Equals(ref Half value1, ref Half value2)
 {
     return(value1.value == value2.value);
 }