public Camera(Camera cameraToCopy) { this.cameraFOV = cameraToCopy.cameraFOV; this.distanceToCameraPlane = cameraToCopy.distanceToCameraPlane; this.axisToWorld = cameraToCopy.axisToWorld; this.widthInPixels = cameraToCopy.widthInPixels; this.heightInPixels = cameraToCopy.heightInPixels; }
/// <summary>Indicates whether the current matrix is equal to another matrix.</summary> /// <param name="other">An matrix to compare with this matrix.</param> /// <returns>true if the current matrix is equal to the matrix parameter; otherwise, false.</returns> public bool Equals(Camera other) { if ((object)other == null) { return false; } return cameraFOV == other.cameraFOV && distanceToCameraPlane == other.distanceToCameraPlane && axisToWorld == other.axisToWorld && widthInPixels == other.widthInPixels && heightInPixels == other.heightInPixels; }