FREE TRIAL

|

☀
☾

LengthRect.Implicit

Implicit(float to LengthRect)

Constructs a new LengthRect and assigns each edge offset to a Value Length of value.

Declaration
public static implicit operator LengthRect(float value)
Parameters
Type Name Description
float value

The length to assign in units.

Returns
Type Description
LengthRect

Implicit(Length to LengthRect)

Constructs a new LengthRect and assigns each edge offset to the provided length.

Declaration
public static implicit operator LengthRect(Length length)
Parameters
Type Name Description
Length length

The length to assign to each edge offset.

Returns
Type Description
LengthRect

Implicit(Vector2 to LengthRect)

Constructs a new LengthRect and assigns each edge offset to a Value Length along its respective axis.

Declaration
public static implicit operator LengthRect(Vector2 v)
Parameters
Type Name Description
Vector2 v

The lengths to assign to each edge offset, by axis, in units.

Returns
Type Description
LengthRect

Implicit(Length2 to LengthRect)

Constructs a new LengthRect and assigns each edge offset to the provided Length along its respective axis.

Declaration
public static implicit operator LengthRect(Length2 lengths)
Parameters
Type Name Description
Length2 lengths

The lengths to assign to each edge offset, by axis.

Returns
Type Description
LengthRect
☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC