Class TuringDisplay
public class TuringDisplay
- Inheritance
-
TuringDisplay
- Inherited Members
- Extension Methods
Constructors
TuringDisplay(Profile)
public TuringDisplay(TuringDisplay.Profile p)
Parameters
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
isT2
public static bool isT2
Field Value
Properties
EulerAngles
public Vector3 EulerAngles { get; }
Property Value
- Vector3
Methods
GetInch(Profile)
public static float GetInch(TuringDisplay.Profile profile)
Parameters
profileTuringDisplay.Profile
Returns
GetMetersPerPixel(Profile)
Gets the display meters per pixel conversion factor based on the specified display profile.
public static Vector2 GetMetersPerPixel(TuringDisplay.Profile profile)
Parameters
profileTuringDisplay.ProfileThe 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
profileTuringDisplay.ProfileThe 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
profileTuringDisplay.Profile
Returns
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
referenceSizeVector2The reference display size in meters.
currentSizeVector2The 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
profileTuringDisplay.ProfileThe display profile to retrieve the size for.
Returns
- Vector2
The size in meters.