Skip to content

TextStudio2DBoundsExpansion

StructTextStudioTextStudio
public readonly struct TextStudio2DBoundsExpansion

Conservative normalized expansion beyond source glyph bounds.

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

NameType
leftSystem.Single
bottomSystem.Single
rightSystem.Single
topSystem.Single

public TextStudio2DBoundsExpansion Max(in TextStudio2DBoundsExpansion other)

Returns the component-wise maximum expansion of this value and the supplied value.

Parameters

NameType
otherTextStudio.TextStudio2DBoundsExpansion

Returns

TextStudio.TextStudio2DBoundsExpansion

public bool Equals(TextStudio2DBoundsExpansion other)

Parameters

NameType
otherTextStudio.TextStudio2DBoundsExpansion

Returns

System.Boolean

public override bool Equals(object obj)

Parameters

NameType
objSystem.Object

Returns

System.Boolean

public override int GetHashCode()

Returns

System.Int32

public float Left { get; }

Returns

System.Single

public float Bottom { get; }

Returns

System.Single

public float Right { get; }

Returns

System.Single

public float Top { get; }

Returns

System.Single

public bool IsZero { get; }

Returns

System.Boolean

public Vector4 Vector { get; }

Returns

UnityEngine.Vector4