Skip to content

Commit

Permalink
Add struct and proto to Transform2d
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse committed Feb 14, 2024
1 parent ee72d1a commit 915af4c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/wpimath/Geometry/Transform2d.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,14 @@ public partial class Transform2dJsonContext : JsonSerializerContext
IDivisionOperators<Transform2d, double, Transform2d>,
IEqualityOperators<Transform2d, Transform2d, bool>,
IAdditiveIdentity<Transform2d, Transform2d>,
IEquatable<Transform2d>
IEquatable<Transform2d>,
IStructSerializable<Transform2d>,
IProtobufSerializable<Transform2d, ProtobufTransform2d>
{
public static IStruct<Transform2d> Struct { get; } = new Transform2dStruct();
public static IProtobuf<Transform2d, ProtobufTransform2d> Proto { get; } = new Transform2dProto();
static IGenericProtobuf<Transform2d> IProtobufSerializable<Transform2d>.ProtoGeneric => Proto;

[JsonInclude]
[JsonPropertyName("translation")]
public Translation2d Translation { get; init; }
Expand Down

0 comments on commit 915af4c

Please sign in to comment.