mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Implement more IStringEncodable
This commit is contained in:
@@ -9,7 +9,7 @@ using System.Text;
|
||||
|
||||
namespace Microsoft.Iris.Drawing
|
||||
{
|
||||
public struct Rotation
|
||||
public struct Rotation : IStringEncodable
|
||||
{
|
||||
private Vector3 _axis;
|
||||
private float _angleRad;
|
||||
@@ -62,5 +62,10 @@ namespace Microsoft.Iris.Drawing
|
||||
stringBuilder.Append(")");
|
||||
return stringBuilder.ToString();
|
||||
}
|
||||
|
||||
public string EncodeString()
|
||||
{
|
||||
return $"{AngleRadians}rad;{Axis.EncodeString()}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user