Struct Lens
Contains all the parameters needed to configure a physical camera lens.
Namespace: Unity.LiveCapture.VirtualCamera
Syntax
public struct Lens : IEquatable<Lens>
Fields
DefaultParams
The default lens values.
Declaration
public static readonly Lens DefaultParams
Field Value
Type | Description |
---|---|
Lens |
Properties
Aperture
The ratio of the f-stop or f-number aperture. The smaller the value is, the shallower the depth of field is and more light reaches the sensor.
Declaration
public float Aperture { get; set; }
Property Value
Type | Description |
---|---|
Single |
FocalLength
The focal length in millimeters.
Declaration
public float FocalLength { get; set; }
Property Value
Type | Description |
---|---|
Single |
FocusDistance
The focus distance in meters.
Declaration
public float FocusDistance { get; set; }
Property Value
Type | Description |
---|---|
Single |
Methods
Equals(Object)
Determines whether the specified object is equal to the current Lens.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current Lens. |
Returns
Type | Description |
---|---|
Boolean | true if the specified object is equal to the current Lens; otherwise, false. |
Equals(Lens)
Declaration
public bool Equals(Lens other)
Parameters
Type | Name | Description |
---|---|---|
Lens | other |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Gets the hash code for the Lens.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash value generated for this Lens. |
Operators
Equality(Lens, Lens)
Determines whether the two specified Lens are equal.
Declaration
public static bool operator ==(Lens a, Lens b)
Parameters
Type | Name | Description |
---|---|---|
Lens | a | The first Lens. |
Lens | b | The second Lens. |
Returns
Type | Description |
---|---|
Boolean | true if the specified Lens are equal; otherwise, false. |
Inequality(Lens, Lens)
Determines whether the two specified Lens are different.
Declaration
public static bool operator !=(Lens a, Lens b)
Parameters
Type | Name | Description |
---|---|---|
Lens | a | The first Lens. |
Lens | b | The second Lens. |
Returns
Type | Description |
---|---|
Boolean | true if the specified Lenses are different; otherwise, false. |