Skip to content

LedBoardSizing

ClassLEDStudioLEDStudio
public static class LedBoardSizing

Converts between physical display dimensions, emitter counts, pixel pitch, and generated topology bounds.

CalculatePhysicalSizeMeters(Vector2Int, float)

Section titled “CalculatePhysicalSizeMeters(Vector2Int, float)”
public static Vector2 CalculatePhysicalSizeMeters(Vector2Int logicalResolution, float pitchMM)

Calculates flat board width and height in metres from emitter count and millimetre pixel pitch.

Parameters

Name Type
logicalResolution UnityEngine.Vector2Int
pitchMM System.Single

Returns

UnityEngine.Vector2

CalculatePhysicalScale(Vector2Int, float, LedTopologySettings)

Section titled “CalculatePhysicalScale(Vector2Int, float, LedTopologySettings)”
public static Vector3 CalculatePhysicalScale(Vector2Int logicalResolution, float pitchMM, LedTopologySettings topologySettings)

Calculates local scale for flat, curved, or corner topology while preserving pitch-derived height.

Parameters

Name Type
logicalResolution UnityEngine.Vector2Int
pitchMM System.Single
topologySettings LEDStudio.LedTopologySettings

Returns

UnityEngine.Vector3