Fixed unsigned float
This commit is contained in:
		
							parent
							
								
									6b75707a2e
								
							
						
					
					
						commit
						71bbef7d13
					
				@ -8,7 +8,8 @@
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// A polar vector
 | 
			
		||||
/// </summary>
 | 
			
		||||
/// This will use the polar coordinate system consisting of a angle from a reference direction and a distance.
 | 
			
		||||
/// This will use the polar coordinate system consisting of a angle from a
 | 
			
		||||
/// reference direction and a distance.
 | 
			
		||||
struct Polar {
 | 
			
		||||
 public:
 | 
			
		||||
  /// <summary>
 | 
			
		||||
@ -20,7 +21,7 @@ struct Polar {
 | 
			
		||||
  /// The distance in meters
 | 
			
		||||
  /// </summary>
 | 
			
		||||
  /// The distance should never be negative
 | 
			
		||||
  unsigned float distance;
 | 
			
		||||
  float distance;
 | 
			
		||||
 | 
			
		||||
  /// <summary>
 | 
			
		||||
  /// Create a new polar vector with zero degrees and distance
 | 
			
		||||
@ -64,7 +65,8 @@ struct Polar {
 | 
			
		||||
  /// </summary>
 | 
			
		||||
  /// <param name="factor">The scaling factor</param>
 | 
			
		||||
  /// <returns>The scaled vector</returns>
 | 
			
		||||
  /// This operation will scale the distance of the vector. The angle will be unaffected.
 | 
			
		||||
  /// This operation will scale the distance of the vector. The angle will be
 | 
			
		||||
  /// unaffected.
 | 
			
		||||
  Polar operator*(float factor) const;
 | 
			
		||||
 | 
			
		||||
  /// <summary>
 | 
			
		||||
@ -72,7 +74,8 @@ struct Polar {
 | 
			
		||||
  /// </summary>
 | 
			
		||||
  /// <param name="factor">The scaling factor</param>
 | 
			
		||||
  /// <returns>The scaled vector</returns>
 | 
			
		||||
  /// This operation will scale the distance of the vector. The angle will be unaffected.
 | 
			
		||||
  /// This operation will scale the distance of the vector. The angle will be
 | 
			
		||||
  /// unaffected.
 | 
			
		||||
  Polar operator/(const float& factor);
 | 
			
		||||
 | 
			
		||||
  /// <summary>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user