@@ -718,7 +718,7 @@ namespace RTE {
718718 // / Returns force vector in newtons of the specified Force record.
719719 // / @param n Force record index to get data from.
720720 // / @return Force vector in newtons of the specified Force record.
721- Vector GetForceVector (int n) {
721+ Vector GetForceVector (unsigned int n) {
722722 if (n > 0 && n < m_Forces.size ())
723723 return m_Forces[n].first ;
724724 else
@@ -732,7 +732,7 @@ namespace RTE {
732732 // / Returns offset vector in METERS (not pixels) of the specified Force record.
733733 // / @param n Force record index to get data from.
734734 // / @return Offset vector in meters of the specified Force record.
735- Vector GetForceOffset (int n) {
735+ Vector GetForceOffset (unsigned int n) {
736736 if (n > 0 && n < m_Forces.size ())
737737 return m_Forces[n].second ;
738738 else
@@ -741,14 +741,14 @@ namespace RTE {
741741
742742 // / Sets force vector in newtons of the specified Force record.
743743 // / @param n Force record index to get data from. New Vector force value in newtons.
744- void SetForceVector (int n, Vector v) {
744+ void SetForceVector (unsigned int n, Vector v) {
745745 if (n > 0 && n < m_Forces.size ())
746746 m_Forces[n].first = v;
747747 }
748748
749749 // / Sets offset vector in METERS (not pixels) of the specified Force record.
750750 // / @param n Force record index to get data from. New Vector offset value in meters.
751- void SetForceOffset (int n, Vector v) {
751+ void SetForceOffset (unsigned int n, Vector v) {
752752 if (n > 0 && n < m_Forces.size ())
753753 m_Forces[n].second = v;
754754 }
@@ -764,7 +764,7 @@ namespace RTE {
764764 // / Returns Impulse vector in newtons of the specified Impulse record.
765765 // / @param n Impulse record index to get data from.
766766 // / @return Impulse vector in newtons of the specified Impulse record.
767- Vector GetImpulseVector (int n) {
767+ Vector GetImpulseVector (unsigned int n) {
768768 if (n > 0 && n < m_ImpulseForces.size ())
769769 return m_ImpulseForces[n].first ;
770770 else
@@ -774,7 +774,7 @@ namespace RTE {
774774 // / Returns offset vector in METERS (not pixels) of the specified Impulse record.
775775 // / @param n Impulse record index to get data from.
776776 // / @return Offset vector in meters of the specified Impulse record.
777- Vector GetImpulseOffset (int n) {
777+ Vector GetImpulseOffset (unsigned int n) {
778778 if (n > 0 && n < m_ImpulseForces.size ())
779779 return m_ImpulseForces[n].second ;
780780 else
@@ -784,14 +784,14 @@ namespace RTE {
784784 // / Returns offset vector in METERS (not pixels) of the specified Impulse record.
785785 // / @param n Impulse record index to get data from.
786786 // / @return Offset vector in meters of the specified Impulse record.
787- void SetImpulseVector (int n, Vector v) {
787+ void SetImpulseVector (unsigned int n, Vector v) {
788788 if (n > 0 && n < m_ImpulseForces.size ())
789789 m_ImpulseForces[n].first = v;
790790 }
791791
792792 // / Sets offset vector in METERS (not pixels) of the specified Impulse record.
793793 // / @param n Impulse record index to get data from. New Vector offset value in meters.
794- void SetImpulseOffset (int n, Vector v) {
794+ void SetImpulseOffset (unsigned int n, Vector v) {
795795 if (n > 0 && n < m_ImpulseForces.size ())
796796 m_ImpulseForces[n].second = v;
797797 }
0 commit comments