public void Set(Vector3D vector3D) { this.X = vector3D.X; this.Y = vector3D.Y; this.Z = vector3D.Z; }
public Vector3D(Vector3D vector) { this.X = vector.X; this.Y = vector.Y; this.Z = vector.Z; }
/// <summary> /// Calculates the distance squared from this vector to another. /// </summary> /// <param name="point">the second <see cref="Vector3" /></param> /// <returns>the distance squared between the vectors</returns> public float DistanceSquared(ref Vector3D point) { float x = point.X - X; float y = point.Y - Y; float z = point.Z - Z; return ((x * x) + (y * y)) + (z * z); }