Struct ARKitWhiteBalanceGains
Represents the white balance gain values.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARKit
Assembly: Unity.XR.ARKit.dll
Syntax
public struct ARKitWhiteBalanceGains : IEquatable<ARKitWhiteBalanceGains>
Constructors
ARKitWhiteBalanceGains(float, float, float)
Constructs an instance with given white balance gain values.
Declaration
public ARKitWhiteBalanceGains(float blue, float green, float red)
Parameters
Type | Name | Description |
---|---|---|
float | blue | The blue gain. |
float | green | The green gain. |
float | red | The red gain. |
Properties
blue
The blue gain component of the white balance value.
Declaration
public float blue { get; }
Property Value
Type | Description |
---|---|
float |
green
The green gain component of the white balance value.
Declaration
public float green { get; }
Property Value
Type | Description |
---|---|
float |
red
The red gain component of the white balance value.
Declaration
public float red { get; }
Property Value
Type | Description |
---|---|
float |
Methods
Equals(object)
Tests for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | An object to compare against. |
Returns
Type | Description |
---|---|
bool | true if |
Overrides
Equals(ARKitWhiteBalanceGains)
Tests for equality.
Declaration
public bool Equals(ARKitWhiteBalanceGains other)
Parameters
Type | Name | Description |
---|---|---|
ARKitWhiteBalanceGains | other | The ARKitWhiteBalanceGains to compare against. |
Returns
Type | Description |
---|---|
bool | true if the underlying blue, green, and red gains are the same. Otherwise, false. |
Remarks
Two ARKitWhiteBalanceGainss are considered equal if their underlying blue, green, and red gain values are equal.
GetHashCode()
Generates a hash code suitable for use with a HashSet
or Dictionary
.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this ARKitWhiteBalanceGains. |
Overrides
ToString()
Generates a string representation of this ARKitWhiteBalanceGains suitable for debugging purposes.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of this ARKitWhiteBalanceGains. |
Overrides
Operators
operator ==(ARKitWhiteBalanceGains, ARKitWhiteBalanceGains)
Tests for equality. Same as Equals(ARKitWhiteBalanceGains).
Declaration
public static bool operator ==(ARKitWhiteBalanceGains lhs, ARKitWhiteBalanceGains rhs)
Parameters
Type | Name | Description |
---|---|---|
ARKitWhiteBalanceGains | lhs | The ARKitWhiteBalanceGains to compare with |
ARKitWhiteBalanceGains | rhs | The ARKitWhiteBalanceGains to compare with |
Returns
Type | Description |
---|---|
bool | true if |
operator !=(ARKitWhiteBalanceGains, ARKitWhiteBalanceGains)
Tests for inequality. Same as the negation of Equals(ARKitWhiteBalanceGains).
Declaration
public static bool operator !=(ARKitWhiteBalanceGains lhs, ARKitWhiteBalanceGains rhs)
Parameters
Type | Name | Description |
---|---|---|
ARKitWhiteBalanceGains | lhs | The ARKitWhiteBalanceGains to compare with |
ARKitWhiteBalanceGains | rhs | The ARKitWhiteBalanceGains to compare with |
Returns
Type | Description |
---|---|
bool | false if |