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
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
Returns
Type | Description |
---|---|
bool | true if |
Overrides
Equals(ARKitWhiteBalanceGains)
Tests for equality.
Declaration
public bool Equals(ARKitWhiteBalanceGains other)
Parameters
Type | Name | Description |
---|---|---|
ARKit |
other | The ARKit |
Returns
Type | Description |
---|---|
bool | true if the underlying blue, green, and red gains are the same. Otherwise, false. |
Remarks
Two ARKit
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 ARKit |
Overrides
ToString()
Generates a string representation of this ARKit
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of this ARKit |
Overrides
Operators
operator ==(ARKitWhiteBalanceGains, ARKitWhiteBalanceGains)
Tests for equality. Same as Equals(ARKit
Declaration
public static bool operator ==(ARKitWhiteBalanceGains lhs, ARKitWhiteBalanceGains rhs)
Parameters
Type | Name | Description |
---|---|---|
ARKit |
lhs | The ARKit |
ARKit |
rhs | The ARKit |
Returns
Type | Description |
---|---|
bool | true if |
operator !=(ARKitWhiteBalanceGains, ARKitWhiteBalanceGains)
Tests for inequality. Same as the negation of Equals(ARKit
Declaration
public static bool operator !=(ARKitWhiteBalanceGains lhs, ARKitWhiteBalanceGains rhs)
Parameters
Type | Name | Description |
---|---|---|
ARKit |
lhs | The ARKit |
ARKit |
rhs | The ARKit |
Returns
Type | Description |
---|---|
bool | false if |