Table of Contents

Class TuringDisplay

Namespace
Turing.Core.Utility
Assembly
Turing.Core.dll
public class TuringDisplay
Inheritance
TuringDisplay
Inherited Members
Extension Methods

Constructors

TuringDisplay(Profile)

public TuringDisplay(TuringDisplay.Profile p)

Parameters

p TuringDisplay.Profile

Fields

DefaultEulerAngles

public static readonly Vector3 DefaultEulerAngles

Field Value

Vector3

MinimumSize

public static readonly Vector2 MinimumSize

Field Value

Vector2

ReferenceProfile

public static TuringDisplay.Profile ReferenceProfile

Field Value

TuringDisplay.Profile

isT2

public static bool isT2

Field Value

bool

Properties

EulerAngles

public Vector3 EulerAngles { get; }

Property Value

Vector3

Methods

GetInch(Profile)

public static float GetInch(TuringDisplay.Profile profile)

Parameters

profile TuringDisplay.Profile

Returns

float

GetMetersPerPixel(Profile)

Gets the display meters per pixel conversion factor based on the specified display profile.

public static Vector2 GetMetersPerPixel(TuringDisplay.Profile profile)

Parameters

profile TuringDisplay.Profile

The display profile to retrieve the meters per pixel conversion factor for.

Returns

Vector2

The meters per pixel conversion factor.

GetNativeResolution(Profile)

Gets the native display resolution in pixels based on the specified display profile.

public static Vector2Int GetNativeResolution(TuringDisplay.Profile profile)

Parameters

profile TuringDisplay.Profile

The display profile to retrieve the native resolution for.

Returns

Vector2Int

The native resolution in pixels.

GetNativeSize()

public static Vector2 GetNativeSize()

Returns

Vector2

GetPixelsizeScreen_mm(Profile)

public static float GetPixelsizeScreen_mm(TuringDisplay.Profile profile)

Parameters

profile TuringDisplay.Profile

Returns

float

GetScale(Vector2, Vector2)

Gets the scale of a display based on its current size relative to the specified reference size.

public static Vector2 GetScale(Vector2 referenceSize, Vector2 currentSize)

Parameters

referenceSize Vector2

The reference display size in meters.

currentSize Vector2

The current display size in meters.

Returns

Vector2

The scale of the current display relative to the specified reference display.

GetSize(Profile)

Gets the display size in meters based on either the specified display profile.

public static Vector2 GetSize(TuringDisplay.Profile profile)

Parameters

profile TuringDisplay.Profile

The display profile to retrieve the size for.

Returns

Vector2

The size in meters.