Class SurfaceRectGenerator
Inheritance
System.Object
SurfaceRectGenerator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Immersive
Assembly: cs.temp.dll.dll
Syntax
public static class SurfaceRectGenerator
Methods
CreateSurfaceDivisions(SurfaceLocation, Boolean)
Declaration
public static int[] CreateSurfaceDivisions(SurfaceLocation layout, bool areSurfaceSplitInTwo)
Parameters
| Type | Name | Description |
|---|---|---|
| SurfaceLocation | layout | |
| System.Boolean | areSurfaceSplitInTwo |
Returns
| Type | Description |
|---|---|
| System.Int32[] |
GenerateSurfaceRect(RoomShape, SurfaceLocation, AspectRatio, Int32)
A static method which generates a Rect[] representing the SurfaceRects of an Immersive Room with a provided RoomShape, layout, AspectRatio and SurfaceHeight.
Declaration
public static Rect[] GenerateSurfaceRect(RoomShape roomShape, SurfaceLocation layout, AspectRatio standardAspectRatio, int surfacePixelHeight = 1080)
Parameters
| Type | Name | Description |
|---|---|---|
| RoomShape | roomShape | The shape of the room. |
| SurfaceLocation | layout | A SurfaceLocation representing which surfaces are present. |
| AspectRatio | standardAspectRatio | The AspectRatio of a Standard Surface. |
| System.Int32 | surfacePixelHeight | The height in pixels of a surface. |
Returns
| Type | Description |
|---|---|
| Rect[] | A Rect[] representing the resolution and position of a set of surfaces. |
GenerateSurfaceRect(SurfaceLocation, Single, Single, Single, Single, Single, Int32)
A static method which generates a Rect[] representing the SurfaceRects of an Immersive Room with a provided layout, SurfaceHeight and the Aspect Ratio of each surface.
Declaration
public static Rect[] GenerateSurfaceRect(SurfaceLocation layout, float leftAspect, float centreAspect, float rightAspect, float backAspect, float floorAspect, int surfacePixelHeight = 1080)
Parameters
| Type | Name | Description |
|---|---|---|
| SurfaceLocation | layout | A SurfaceLocation representing which surfaces are present. |
| System.Single | leftAspect | |
| System.Single | centreAspect | |
| System.Single | rightAspect | |
| System.Single | backAspect | |
| System.Single | floorAspect | |
| System.Int32 | surfacePixelHeight | The height in pixels of a surface. |
Returns
| Type | Description |
|---|---|
| Rect[] | A Rect[] representing the resolution and position of a set of surfaces. |