Files
I150/srcs/RobotNet10/Shared/RobotNet10.Shared/Geometry/Transform.cs
2026-07-03 16:37:12 +07:00

40 lines
902 B
C#

using RobotNet10.Shared.Numbers;
namespace RobotNet10.Shared.Geometry;
/// <summary>
/// Transform message (geometry_msgs/Transform)
/// Represents a transform between two coordinate frames in free space
/// </summary>
public struct Transform
{
/// <summary>
/// Translation (Vector3)
/// </summary>
public Vector3 Translation { get; set; }
/// <summary>
/// Rotation (Quaternion)
/// </summary>
public Quaternion Rotation { get; set; }
/// <summary>
/// Default constructor
/// </summary>
public Transform()
{
Translation = new Vector3();
Rotation = new Quaternion();
}
/// <summary>
/// Constructor with parameters
/// </summary>
public Transform(Vector3 translation, Quaternion rotation)
{
Translation = translation;
Rotation = rotation;
}
}