Struct CoordAndUnit
Represents a coordinate value with an associated unit.
public readonly struct CoordAndUnit
Constructors
- CoordAndUnit(int, CoordUnit)
Initializes a new instance of the CoordAndUnit struct with the specified value and unit.
Fields
- Unit
Gets the unit of the coordinate value.
- Value
Gets the coordinate value.
Methods
- ToPixels(float, int)
Converts the current coordinate value to pixels based on the specified scale factor and base value.