encodePlacement

encodePlacement

Method of Antilatency.Alt.Tracking.ILibrary
Creates a pose from individually passed position and rotation and encodes them into a Base64 string. This is the inverse operation for ILibrary.createPlacement method.
string encodePlacement(​Math.float3 position, Math.float3 rotation);

Parameters

Math.float3 position
The position component of the pose to be encoded.
Math.float3 rotation
The rotation component of the pose to be encoded.

Return value

string
A Base64-encoded string which represents the placement pose. This method never throws, even if position or rotation components contain NaNs, infinities or otherwise invalid values.