Fixed unsigned float
This commit is contained in:
parent
6b75707a2e
commit
71bbef7d13
@ -8,7 +8,8 @@
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// A polar vector
|
/// A polar vector
|
||||||
/// </summary>
|
/// </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 {
|
struct Polar {
|
||||||
public:
|
public:
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -20,7 +21,7 @@ struct Polar {
|
|||||||
/// The distance in meters
|
/// The distance in meters
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// The distance should never be negative
|
/// The distance should never be negative
|
||||||
unsigned float distance;
|
float distance;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a new polar vector with zero degrees and distance
|
/// Create a new polar vector with zero degrees and distance
|
||||||
@ -43,7 +44,7 @@ struct Polar {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// This will rotate the vector by 180 degrees. Distance will stay the same.
|
/// This will rotate the vector by 180 degrees. Distance will stay the same.
|
||||||
/// <returns>The negated vector</returns>
|
/// <returns>The negated vector</returns>
|
||||||
|
|
||||||
Polar operator-();
|
Polar operator-();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Substract a polar vector from this coordinate
|
/// Substract a polar vector from this coordinate
|
||||||
@ -64,7 +65,8 @@ struct Polar {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="factor">The scaling factor</param>
|
/// <param name="factor">The scaling factor</param>
|
||||||
/// <returns>The scaled vector</returns>
|
/// <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;
|
Polar operator*(float factor) const;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -72,7 +74,8 @@ struct Polar {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="factor">The scaling factor</param>
|
/// <param name="factor">The scaling factor</param>
|
||||||
/// <returns>The scaled vector</returns>
|
/// <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);
|
Polar operator/(const float& factor);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user