Ejemplo n.º 1
0
 public void CopyFrom(EntityStatePDU other)
 {
     EntityId                         = other.EntityId;
     ForceId                          = other.ForceId;
     EntityType                       = other.EntityType;
     AlternativeEntityType            = other.AlternativeEntityType;
     LinearVelocity                   = other.LinearVelocity;
     Location                         = other.Location;
     Orientation                      = other.Orientation;
     Appearance.BitValue              = other.Appearance.BitValue;
     DeadRecokning.Algorithm          = other.DeadRecokning.Algorithm;
     DeadRecokning.LinearAcceleration = other.DeadRecokning.LinearAcceleration;
     MarkingText.CharacterSet         = other.MarkingText.CharacterSet;
     MarkingText.String               = other.MarkingText.String;
     Capabilities                     = other.Capabilities;
     if (ArticulatedParts.Length != other.ArticulatedParts.Length)
     {
         ArticulatedParts = new ArticulatedPart[other.ArticulatedParts.Length];
     }
     for (int i = 0; i < other.ArticulatedParts.Length; i++)
     {
         ArticulatedParts[i].TypeDesignator         = other.ArticulatedParts[i].TypeDesignator;
         ArticulatedParts[i].ChangeIndicator        = other.ArticulatedParts[i].ChangeIndicator;
         ArticulatedParts[i].TypeVariantAttached    = other.ArticulatedParts[i].TypeVariantAttached;
         ArticulatedParts[i].TypeVariantArticulated = other.ArticulatedParts[i].TypeVariantArticulated;
         ArticulatedParts[i].value = other.ArticulatedParts[i].value;
     }
 }
Ejemplo n.º 2
0
 public Vector3Double(Vector3Double d)
 {
     X = d.X;
     Y = d.Y;
     Z = d.Z;
 }