Struct MRPlane
Provides a template for tracked plane data
Syntax
public struct MRPlane : IMRTrackable, IEquatable<MRPlane>
Fields
indices
(Optional) indices (triangles) for polygon extents
Will be present if vertices are present
Declaration
Field Value
Type |
Description |
List<Int32> |
|
normals
(Optional) normal vectors for polygon extents
Will be present if vertices are present
Declaration
public List<Vector3> normals
Field Value
Type |
Description |
List<Vector3> |
|
textureCoordinates
(Optional) texture coordinates (UVs) for polygon extents
Will be present if vertices are present
Declaration
public List<Vector2> textureCoordinates
Field Value
Type |
Description |
List<Vector2> |
|
vertices
(Optional) vertices for polygon extents
Declaration
public List<Vector3> vertices
Field Value
Type |
Description |
List<Vector3> |
|
Properties
alignment
The alignment of this plane (e.g. Horizontal, Vertical)
Declaration
public MarsPlaneAlignment alignment { get; set; }
Property Value
center
The center of this plane, in local space
Declaration
public Vector3 center { get; set; }
Property Value
extents
The extents of this plane
Declaration
public Vector2 extents { get; set; }
Property Value
id
The id of this plane as determined by the provider
Declaration
public MarsTrackableId id { get; set; }
Property Value
Implements
pose
Declaration
public Pose pose { get; set; }
Property Value
Implements
Methods
Equals(MRPlane)
Declaration
public bool Equals(MRPlane other)
Parameters
Type |
Name |
Description |
MRPlane |
other |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
GetWorldBounds(IUsesCameraOffset, Single)
Get the bounds of the MRPlane
Declaration
public Bounds GetWorldBounds(IUsesCameraOffset cameraOffset, float minBound)
Parameters
Returns
Type |
Description |
Bounds |
Bounds of the MRPlane
|
ToString()
Declaration
public override string ToString()
Returns