new public void writeURDF(XmlWriter writer) { writer.WriteStartElement("inertia"); writer.WriteAttributeString("ixx", Ixx.ToString()); writer.WriteAttributeString("ixy", Ixy.ToString()); writer.WriteAttributeString("ixz", Ixz.ToString()); writer.WriteAttributeString("iyy", Iyy.ToString()); writer.WriteAttributeString("iyz", Iyz.ToString()); writer.WriteAttributeString("izz", Izz.ToString()); writer.WriteEndElement(); }
public override int GetHashCode() { unchecked { var hashCode = Ixx.GetHashCode(); hashCode = (hashCode * 397) ^ Ixy.GetHashCode(); hashCode = (hashCode * 397) ^ Ixz.GetHashCode(); hashCode = (hashCode * 397) ^ Iyy.GetHashCode(); hashCode = (hashCode * 397) ^ Iyz.GetHashCode(); hashCode = (hashCode * 397) ^ Izz.GetHashCode(); return(hashCode); } }
protected bool Equals(Inertia other) { return(Ixx.Equals(other.Ixx) && Ixy.Equals(other.Ixy) && Ixz.Equals(other.Ixz) && Iyy.Equals(other.Iyy) && Iyz.Equals(other.Iyz) && Izz.Equals(other.Izz)); }