TextStudio2DBoundsExpansion
public readonly struct TextStudio2DBoundsExpansionConservative normalized expansion beyond source glyph bounds.
Constructors
Section titled “Constructors”
TextStudio2DBoundsExpansion(float, float, float, float)
Section titled “TextStudio2DBoundsExpansion(float, float, float, float)”public TextStudio2DBoundsExpansion(float left, float bottom, float right, float top)Creates a bounds expansion with negative distances clamped to zero on each side.
Parameters
| Name | Type |
|---|---|
left | System.Single |
bottom | System.Single |
right | System.Single |
top | System.Single |
Methods
Section titled “Methods”
Max(in TextStudio2DBoundsExpansion)
Section titled “Max(in TextStudio2DBoundsExpansion)”public TextStudio2DBoundsExpansion Max(in TextStudio2DBoundsExpansion other)Returns the component-wise maximum expansion of this value and the supplied value.
Parameters
| Name | Type |
|---|---|
other | TextStudio.TextStudio2DBoundsExpansion |
Returns
TextStudio.TextStudio2DBoundsExpansion
Equals(TextStudio2DBoundsExpansion)
Section titled “Equals(TextStudio2DBoundsExpansion)”public bool Equals(TextStudio2DBoundsExpansion other)Parameters
| Name | Type |
|---|---|
other | TextStudio.TextStudio2DBoundsExpansion |
Returns
System.Boolean
Equals(object)
Section titled “Equals(object)”public override bool Equals(object obj)Parameters
| Name | Type |
|---|---|
obj | System.Object |
Returns
System.Boolean
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Returns
System.Int32
Properties
Section titled “Properties”
public float Left { get; }Returns
System.Single
Bottom
Section titled “Bottom”public float Bottom { get; }Returns
System.Single
public float Right { get; }Returns
System.Single
public float Top { get; }Returns
System.Single
IsZero
Section titled “IsZero”public bool IsZero { get; }Returns
System.Boolean
Vector
Section titled “Vector”public Vector4 Vector { get; }Returns
UnityEngine.Vector4