Example #1
0
 public static Joint GetRootAsJoint(ByteBuffer _bb, Joint obj)
 {
     return (obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }
Example #2
0
 public static Joint Deserialize(JointMsg message)
 {
     return new Joint()
     {
         Type = message.Type,
         State = message.State,
         Position2D = new Point(message.Position2D.X, message.Position2D.Y),
         Position3D = new Vector3D(message.Position3D.X, message.Position3D.Y, message.Position3D.Z),
         Rotation = new Quaternion(message.Rotation.X, message.Rotation.Y, message.Rotation.Z, message.Rotation.W),
     };
 }
Example #3
0
 public Joint GetJoints(Joint obj, int j)
 {
     int o = __offset(16); return o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null;
 }