Ejemplo n.º 1
0
 /// <summary>
 /// Compares for equality.
 /// </summary>
 /// <param name="other">The other <see cref="XRCameraFrame"/> to compare against.</param>
 /// <returns><c>true</c> if the <see cref="XRCameraFrame"/> represents the same object.</returns>
 public bool Equals(XRCameraFrame other)
 {
     return(m_TimestampNs.Equals(other.m_TimestampNs) && m_AverageBrightness.Equals(other.m_AverageBrightness) &&
            m_AverageColorTemperature.Equals(other.m_AverageColorTemperature) &&
            m_ProjectionMatrix.Equals(other.m_ProjectionMatrix) &&
            m_DisplayMatrix.Equals(other.m_DisplayMatrix) &&
            m_AverageIntensityInLumens.Equals(other.m_AverageIntensityInLumens) &&
            m_ExposureDuration.Equals(other.m_ExposureDuration) &&
            m_ExposureOffset.Equals(other.m_ExposureOffset) &&
            m_MainLightDirection.Equals(other.m_MainLightDirection) &&
            m_MainLightIntensityLumens.Equals(other.m_MainLightIntensityLumens) &&
            m_MainLightColor.Equals(other.m_MainLightColor) &&
            m_AmbientSphericalHarmonics.Equals(other.m_AmbientSphericalHarmonics) &&
            (m_Properties == other.m_Properties));
 }
Ejemplo n.º 2
0
 public bool Equals(CameraFrame o)
 {
     return(timestampNs.Equals(o.timestampNs) &&
            averageBrightness.Equals(o.averageBrightness) &&
            averageColorTemperature.Equals(o.averageColorTemperature) &&
            colorCorrection.Equals(o.colorCorrection) &&
            projectionMatrix.Equals(o.projectionMatrix) &&
            displayMatrix.Equals(o.displayMatrix) &&
            trackingState.Equals(o.trackingState) &&
            nativePtr.Equals(o.nativePtr) &&
            properties.Equals(o.properties) &&
            averageIntensityInLumens.Equals(o.averageIntensityInLumens) &&
            exposureDuration.Equals(o.exposureDuration) &&
            exposureOffset.Equals(o.exposureOffset) &&
            mainLightIntensityLumens.Equals(o.mainLightIntensityLumens) &&
            mainLightColor.Equals(o.mainLightColor) &&
            mainLightDirection.Equals(o.mainLightDirection) &&
            ambientSphericalHarmonics.Equals(o.ambientSphericalHarmonics) &&
            cameraGrain.Equals(o.cameraGrain) &&
            noiseIntensity.Equals(o.noiseIntensity));
 }