Exemple #1
0
 /// <summary>
 /// 向量的点积
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public int Dot(VectorInt other)
 {
     return(x * other.x + y * other.y + z * other.z);
 }
Exemple #2
0
 /// <summary>
 /// 通过一个现有的向量构建一个相等的向量
 /// </summary>
 /// <param name="vector"></param>
 public VectorInt(VectorInt vector) : this(vector.x, vector.y, vector.z)
 {
 }