Class MessageBuilderUtils
Helper class that converts from common data types into message builder types.
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth.DataModel
Assembly: Unity.Perception.Runtime.dll
Syntax
public static class MessageBuilderUtils
Methods
ToFloatVector(float3)
Converts a float3 into an int vector
Declaration
public static float[] ToFloatVector(float3 inData)
Parameters
| Type | Name | Description |
|---|---|---|
| float3 | inData | The data to convert |
Returns
| Type | Description |
|---|---|
| float[] | The converted data type |
ToFloatVector(Quaternion)
Converts a Quaternion into a float vector
Declaration
public static float[] ToFloatVector(Quaternion inData)
Parameters
| Type | Name | Description |
|---|---|---|
| Quaternion | inData | The data to convert |
Returns
| Type | Description |
|---|---|
| float[] | The converted data type |
ToFloatVector(Vector2)
Converts a Vector2 into an int vector
Declaration
public static float[] ToFloatVector(Vector2 inData)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | inData | The data to convert |
Returns
| Type | Description |
|---|---|
| float[] | The converted data type |
ToFloatVector(Vector3)
Converts a Vector3 into an int vector
Declaration
public static float[] ToFloatVector(Vector3 inData)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | inData | The data to convert |
Returns
| Type | Description |
|---|---|
| float[] | The converted data type |
ToFloatVector2(float3x3)
Converts a float3x3 into an int vector
Declaration
public static float[][] ToFloatVector2(float3x3 inData)
Parameters
| Type | Name | Description |
|---|---|---|
| float3x3 | inData | The data to convert |
Returns
| Type | Description |
|---|---|
| float[][] | The converted data type |
ToIntVector(Color32)
Converts a color32 into an int vector
Declaration
public static int[] ToIntVector(Color32 inData)
Parameters
| Type | Name | Description |
|---|---|---|
| Color32 | inData | The data to convert |
Returns
| Type | Description |
|---|---|
| int[] | The converted data type |