Class AnnotationQuaternion
Represents the rotation of an annotation in 3D space.
Inherited Members
Namespace: Unity.Cloud.Annotation
Syntax
public class AnnotationQuaternion
Constructors
AnnotationQuaternion()
Initializes and returns an instance of AnnotationQuaternion with default values.
Declaration
public AnnotationQuaternion()
AnnotationQuaternion(Single, Single, Single, Single)
Initializes and returns an instance of AnnotationQuaternion.
Declaration
public AnnotationQuaternion(float x, float y, float z, float w)
Parameters
| Type | Name | Description |
|---|---|---|
| Single | x | The X component of the quaternion. |
| Single | y | The Y component of the quaternion. |
| Single | z | The Z component of the quaternion. |
| Single | w | The W component of the quaternion. |
Properties
W
Returns the W component of the quaternion.
Declaration
public float W { get; set; }
Property Value
| Type | Description |
|---|---|
| Single | The W component of the quaternion. |
X
Returns the X component of the quaternion.
Declaration
public float X { get; set; }
Property Value
| Type | Description |
|---|---|
| Single | The X component of the quaternion. |
Y
Returns the Y component of the quaternion.
Declaration
public float Y { get; set; }
Property Value
| Type | Description |
|---|---|
| Single | The Y component of the quaternion. |
Z
Returns the Z component of the quaternion.
Declaration
public float Z { get; set; }
Property Value
| Type | Description |
|---|---|
| Single | The Z component of the quaternion. |