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

NameType
logicalResolutionUnityEngine.Vector2Int
pitchMMSystem.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, corner, or spherical topology while preserving pitch-derived size.

Parameters

NameType
logicalResolutionUnityEngine.Vector2Int
pitchMMSystem.Single
topologySettingsLEDStudio.LedTopologySettings

Returns

UnityEngine.Vector3

Remarks

Board outlines cut the surface inside the board rectangle, so they never change its scale.