public Vector3(float x, float y, float z) { this.x = x; this.y = y; this.z = z; this.magnitude = (float)Math.Sqrt(x * x + y * y + z * z); }