This class is a purely static utility class that contains helper functions for CoreLink data parsing.
More...
|
static Vector3 | bytesToVector3 (byte[] message) |
| Converts a corelink message byte array into a Vector3.
|
|
static byte[] | vector3ToBytes (Vector3 vector3) |
| Converts a Vector3 into bytes to send via CoreLink.
|
|
static Quaternion | bytesToQuaternion (byte[] message) |
| Converts a corelink message byte array into a Quaternion.
|
|
static byte[] | quaternionToBytes (Quaternion vector3) |
| Converts a Vector3 into bytes to send via CoreLink.
|
|
This class is a purely static utility class that contains helper functions for CoreLink data parsing.
Definition at line 8 of file CorelinkParser.cs.
◆ bytesToQuaternion()
static Quaternion CoreLink.CorelinkParser.bytesToQuaternion |
( |
byte[] | message | ) |
|
|
static |
Converts a corelink message byte array into a Quaternion.
- Parameters
-
message | Vector3 read from the first 3 floats of the message |
- Returns
Definition at line 49 of file CorelinkParser.cs.
◆ bytesToVector3()
static Vector3 CoreLink.CorelinkParser.bytesToVector3 |
( |
byte[] | message | ) |
|
|
static |
Converts a corelink message byte array into a Vector3.
- Parameters
-
message | Vector3 read from the first 3 floats of the message |
- Returns
Definition at line 15 of file CorelinkParser.cs.
◆ quaternionToBytes()
static byte[] CoreLink.CorelinkParser.quaternionToBytes |
( |
Quaternion | vector3 | ) |
|
|
static |
Converts a Vector3 into bytes to send via CoreLink.
- Parameters
-
vector3 | Vector3 to convert into a byte[12] |
- Returns
Definition at line 64 of file CorelinkParser.cs.
◆ vector3ToBytes()
static byte[] CoreLink.CorelinkParser.vector3ToBytes |
( |
Vector3 | vector3 | ) |
|
|
static |
Converts a Vector3 into bytes to send via CoreLink.
- Parameters
-
vector3 | Vector3 to convert into a byte[12] |
- Returns
Definition at line 29 of file CorelinkParser.cs.
The documentation for this class was generated from the following file: