Fixed unsigned float

This commit is contained in:
Pascal Serrarens 2023-01-25 15:48:05 +01:00
parent 6b75707a2e
commit 71bbef7d13

View File

@ -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
@ -43,7 +44,7 @@ struct Polar {
/// </summary>
/// This will rotate the vector by 180 degrees. Distance will stay the same.
/// <returns>The negated vector</returns>
Polar operator-();
/// <summary>
/// Substract a polar vector from this coordinate
@ -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>