C# Client  0.0.0.7
C# Library to interface with Corelink
CoreLink.CorelinkParser Class Reference

This class is a purely static utility class that contains helper functions for CoreLink data parsing. More...

Static Public Member Functions

static Vector3 bytesToVector3 (byte[] message)
 Converts a corelink message byte array into a Vector3 More...
 
static byte [] vector3ToBytes (Vector3 vector3)
 Converts a Vector3 into bytes to send via CoreLink More...
 
static Quaternion bytesToQuaternion (byte[] message)
 Converts a corelink message byte array into a Quaternion More...
 
static byte [] quaternionToBytes (Quaternion vector3)
 Converts a Vector3 into bytes to send via CoreLink More...
 

Detailed Description

This class is a purely static utility class that contains helper functions for CoreLink data parsing.

Definition at line 8 of file CorelinkParser.cs.

Member Function Documentation

◆ bytesToQuaternion()

static Quaternion CoreLink.CorelinkParser.bytesToQuaternion ( byte []  message)
static

Converts a corelink message byte array into a Quaternion

Parameters
messageVector3 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
messageVector3 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
vector3Vector3 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
vector3Vector3 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: