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