AngleSingle Struct
Namespace: Stride.Core.MathematicsAssembly: Stride.Core.Mathematics.dll
Represents a unit independant angle using a single-precision floating-point internal representation.
[DataStyle(DataStyle.Compact)]
[DataContract]
public struct AngleSingle : IComparable, IComparable<AngleSingle>, IEquatable<AngleSingle>, IFormattable
Name | Description | |
---|---|---|
Constructors | ||
AngleSingle(Single, AngleType) | Initializes a new instance of the AngleSingle struct with the given unit dependant angle and unit type. |
|
AngleSingle(Single, Single) | Initializes a new instance of the AngleSingle struct using the arc length formula (θ = s/r). |
|
Fields | ||
Degree | A value that specifies the size of a single degree. |
|
Gradian | A value that specifies the size of a single gradian. |
|
Milliradian | A value that specifies the size of a single milliradian. |
|
Minute | A value that specifies the size of a single minute. |
|
Radian | A value that specifies the size of a single radian. |
|
Second | A value that specifies the size of a single second. |
|
Properties | ||
Complement | Gets a Stride.Core.Mathematics.AngleSingle instance that complements this angle (i.e. the two angles add to 90°). |
|
Degrees | Gets or sets the total number of degrees this Stride.Core.Mathematics.AngleSingle represents. |
|
FullRotationAngle | Gets a new Stride.Core.Mathematics.AngleSingle instance that represents the full rotation angle (i.e. 360° or 2π). |
|
Gradians | Gets or sets the total number of gradians this Stride.Core.Mathematics.AngleSingle represents. |
|
IsAcute | Gets a System.Boolean that determines whether this Stride.Core.Mathematics.Angle is an acute angle (i.e. less than 90° but greater than 0°). |
|
IsFullRotation | Gets a System.Boolean that determines whether this Stride.Core.Mathematics.Angle is a full rotation angle (i.e. 360° or 2π). |
|
IsOblique | Gets a System.Boolean that determines whether this Stride.Core.Mathematics.Angle is an oblique angle (i.e. is not 90° or a multiple of 90°). |
|
IsObtuse | Gets a System.Boolean that determines whether this Stride.Core.Mathematics.Angle is an obtuse angle (i.e. greater than 90° but less than 180°). |
|
IsReflex | Gets a System.Boolean that determines whether this Stride.Core.Mathematics.Angle is a reflex angle (i.e. greater than 180° but less than 360°). |
|
IsRight | Gets a System.Boolean that determines whether this Stride.Core.Mathematics.Angle is a right angle (i.e. 90° or π/2). |
|
IsStraight | Gets a System.Boolean that determines whether this Stride.Core.Mathematics.Angle is a straight angle (i.e. 180° or π). |
|
Milliradians | Gets or sets the total number of milliradians this Stride.Core.Mathematics.AngleSingle represents. One milliradian is equal to 1/(2000π). |
|
Minutes | Gets or sets the minutes component of the degrees this Stride.Core.Mathematics.AngleSingle represents. When setting the minutes, if the value is in the range (-60, 60) the whole degrees are not changed; otherwise, the whole degrees may be changed. Fractional values may set the seconds component. |
|
Radians | Gets or sets the total number of radians this Stride.Core.Mathematics.AngleSingle represents. |
|
Revolutions | Gets or sets the total number of revolutions this Stride.Core.Mathematics.AngleSingle represents. |
|
RightAngle | Gets a new Stride.Core.Mathematics.AngleSingle instance that represents the right angle (i.e. 90° or π/2). |
|
Seconds | Gets or sets the seconds of the degrees this Stride.Core.Mathematics.AngleSingle represents. When setting te seconds, if the value is in the range (-60, 60) the whole minutes or whole degrees are not changed; otherwise, the whole minutes or whole degrees may be changed. |
|
StraightAngle | Gets a new Stride.Core.Mathematics.AngleSingle instance that represents the straight angle (i.e. 180° or π). |
|
Supplement | Gets a Stride.Core.Mathematics.AngleSingle instance that supplements this angle (i.e. the two angles add to 180°). |
|
ZeroAngle | Gets a new Stride.Core.Mathematics.AngleSingle instance that represents the zero angle (i.e. 0°). |
|
Methods | ||
Add(AngleSingle, AngleSingle) | Adds two Stride.Core.Mathematics.AngleSingle objects and returns the result. |
|
CompareTo(AngleSingle) | Compares this instance to a second Stride.Core.Mathematics.AngleSingle and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object. |
|
CompareTo(Object) | Compares this instance to a specified object and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object. |
|
Divide(AngleSingle, AngleSingle) | Divides two Stride.Core.Mathematics.AngleSingle objects and returns the result. |
|
Equals(AngleSingle) | Returns a value that indicates whether the current instance and a specified Stride.Core.Mathematics.AngleSingle object have the same value. |
|
Equals(Object) | Returns a value that indicates whether the current instance and a specified object have the same value. |
|
GetHashCode() | Returns a hash code for this Stride.Core.Mathematics.AngleSingle instance. |
|
Max(AngleSingle, AngleSingle) | Compares two Stride.Core.Mathematics.AngleSingle instances and returns the greater angle. |
|
Min(AngleSingle, AngleSingle) | Compares two Stride.Core.Mathematics.AngleSingle instances and returns the smaller angle. |
|
Multiply(AngleSingle, AngleSingle) | Multiplies two Stride.Core.Mathematics.AngleSingle objects and returns the result. |
|
Subtract(AngleSingle, AngleSingle) | Subtracts two Stride.Core.Mathematics.AngleSingle objects and returns the result. |
|
ToString() | Returns a System.String that represents this instance. |
|
ToString(IFormatProvider) | Returns a System.String that represents this instance. |
|
ToString(String) | Returns a System.String that represents this instance. |
|
ToString(String, IFormatProvider) | Returns a System.String that represents this instance. |
|
Wrap() | Wraps this Stride.Core.Mathematics.AngleSingle to be in the range [π, -π]. |
|
Wrap(AngleSingle) | Wraps the Stride.Core.Mathematics.AngleSingle given in the value argument to be in the range [π, -π]. |
|
WrapPositive() | Wraps this Stride.Core.Mathematics.AngleSingle to be in the range [0, 2π). |
|
WrapPositive(AngleSingle) | Wraps the Stride.Core.Mathematics.AngleSingle given in the value argument to be in the range [0, 2π). |
|
Operators | ||
Addition(AngleSingle, AngleSingle) | Adds two Stride.Core.Mathematics.AngleSingle objects and returns the result. |
|
Division(AngleSingle, AngleSingle) | Divides two Stride.Core.Mathematics.AngleSingle objects and returns the result. |
|
Equality(AngleSingle, AngleSingle) | Returns a System.Boolean that indicates whether the values of two Stride.Core.Mathematics.Angle objects are equal. |
|
GreaterThan(AngleSingle, AngleSingle) | Returns a System.Boolean that indicates whether a Stride.Core.Mathematics.Angle object is greater than another Stride.Core.Mathematics.AngleSingle object. |
|
GreaterThanOrEqual(AngleSingle, AngleSingle) | Returns a System.Boolean that indicates whether a Stride.Core.Mathematics.Angle object is greater than or equal to another Stride.Core.Mathematics.AngleSingle object. |
|
Inequality(AngleSingle, AngleSingle) | Returns a System.Boolean that indicates whether the values of two Stride.Core.Mathematics.Angle objects are not equal. |
|
LessThan(AngleSingle, AngleSingle) | Returns a System.Boolean that indicates whether a Stride.Core.Mathematics.Angle object is less than another Stride.Core.Mathematics.AngleSingle object. |
|
LessThanOrEqual(AngleSingle, AngleSingle) | Returns a System.Boolean that indicates whether a Stride.Core.Mathematics.Angle object is less than or equal to another Stride.Core.Mathematics.AngleSingle object. |
|
Multiply(AngleSingle, AngleSingle) | Multiplies two Stride.Core.Mathematics.AngleSingle objects and returns the result. |
|
Subtraction(AngleSingle, AngleSingle) | Subtracts two Stride.Core.Mathematics.AngleSingle objects and returns the result. |
|
UnaryNegation(AngleSingle) | Returns the the negated value of the Stride.Core.Mathematics.AngleSingle operand. |
|
UnaryPlus(AngleSingle) | Returns the value of the Stride.Core.Mathematics.AngleSingle operand. (The sign of the operand is unchanged.) |
Constructors
AngleSingle(Single, AngleType)
Initializes a new instance of the AngleSingle struct with the given unit dependant angle and unit type.
public AngleSingle(float angle, AngleType type)
Parameters
Type | Name | Description |
---|---|---|
System.Single | angle | A unit dependant measure of the angle. |
AngleType | type | The type of unit the angle argument is. |
AngleSingle(Single, Single)
Initializes a new instance of the AngleSingle struct using the arc length formula (θ = s/r).
public AngleSingle(float arcLength, float radius)
Parameters
Type | Name | Description |
---|---|---|
System.Single | arcLength | The measure of the arc. |
System.Single | radius | The radius of the circle. |
Fields
Degree
A value that specifies the size of a single degree.
public const float Degree = 0.00277777785F
Field Value
Type | Description |
---|---|
System.Single |
Gradian
A value that specifies the size of a single gradian.
public const float Gradian = 0.0025F
Field Value
Type | Description |
---|---|
System.Single |
Milliradian
A value that specifies the size of a single milliradian.
public const float Milliradian = 0.000159154937F
Field Value
Type | Description |
---|---|
System.Single |
Minute
A value that specifies the size of a single minute.
public const float Minute = 4.62962962E-05F
Field Value
Type | Description |
---|---|
System.Single |
Radian
A value that specifies the size of a single radian.
public const float Radian = 0.159154937F
Field Value
Type | Description |
---|---|
System.Single |
Second
A value that specifies the size of a single second.
public const float Second = 7.71604959E-07F
Field Value
Type | Description |
---|---|
System.Single |
Properties
Complement
Gets a Stride.Core.Mathematics.AngleSingle instance that complements this angle (i.e. the two angles add to 90°).
public readonly AngleSingle Complement { get; }
Property Value
Type | Description |
---|---|
AngleSingle |
Degrees
Gets or sets the total number of degrees this Stride.Core.Mathematics.AngleSingle represents.
public float Degrees { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
FullRotationAngle
Gets a new Stride.Core.Mathematics.AngleSingle instance that represents the full rotation angle (i.e. 360° or 2π).
public static readonly AngleSingle FullRotationAngle { get; }
Property Value
Type | Description |
---|---|
AngleSingle |
Gradians
Gets or sets the total number of gradians this Stride.Core.Mathematics.AngleSingle represents.
public float Gradians { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
IsAcute
Gets a System.Boolean that determines whether this Stride.Core.Mathematics.Angle is an acute angle (i.e. less than 90° but greater than 0°).
public readonly bool IsAcute { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsFullRotation
Gets a System.Boolean that determines whether this Stride.Core.Mathematics.Angle is a full rotation angle (i.e. 360° or 2π).
public readonly bool IsFullRotation { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsOblique
Gets a System.Boolean that determines whether this Stride.Core.Mathematics.Angle is an oblique angle (i.e. is not 90° or a multiple of 90°).
public readonly bool IsOblique { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsObtuse
Gets a System.Boolean that determines whether this Stride.Core.Mathematics.Angle is an obtuse angle (i.e. greater than 90° but less than 180°).
public readonly bool IsObtuse { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsReflex
Gets a System.Boolean that determines whether this Stride.Core.Mathematics.Angle is a reflex angle (i.e. greater than 180° but less than 360°).
public readonly bool IsReflex { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsRight
Gets a System.Boolean that determines whether this Stride.Core.Mathematics.Angle is a right angle (i.e. 90° or π/2).
public readonly bool IsRight { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsStraight
Gets a System.Boolean that determines whether this Stride.Core.Mathematics.Angle is a straight angle (i.e. 180° or π).
public readonly bool IsStraight { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Milliradians
Gets or sets the total number of milliradians this Stride.Core.Mathematics.AngleSingle represents. One milliradian is equal to 1/(2000π).
public float Milliradians { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Minutes
Gets or sets the minutes component of the degrees this Stride.Core.Mathematics.AngleSingle represents. When setting the minutes, if the value is in the range (-60, 60) the whole degrees are not changed; otherwise, the whole degrees may be changed. Fractional values may set the seconds component.
public float Minutes { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Radians
Gets or sets the total number of radians this Stride.Core.Mathematics.AngleSingle represents.
public float Radians { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Revolutions
Gets or sets the total number of revolutions this Stride.Core.Mathematics.AngleSingle represents.
public float Revolutions { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
RightAngle
Gets a new Stride.Core.Mathematics.AngleSingle instance that represents the right angle (i.e. 90° or π/2).
public static readonly AngleSingle RightAngle { get; }
Property Value
Type | Description |
---|---|
AngleSingle |
Seconds
Gets or sets the seconds of the degrees this Stride.Core.Mathematics.AngleSingle represents. When setting te seconds, if the value is in the range (-60, 60) the whole minutes or whole degrees are not changed; otherwise, the whole minutes or whole degrees may be changed.
public float Seconds { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
StraightAngle
Gets a new Stride.Core.Mathematics.AngleSingle instance that represents the straight angle (i.e. 180° or π).
public static readonly AngleSingle StraightAngle { get; }
Property Value
Type | Description |
---|---|
AngleSingle |
Supplement
Gets a Stride.Core.Mathematics.AngleSingle instance that supplements this angle (i.e. the two angles add to 180°).
public readonly AngleSingle Supplement { get; }
Property Value
Type | Description |
---|---|
AngleSingle |
ZeroAngle
Gets a new Stride.Core.Mathematics.AngleSingle instance that represents the zero angle (i.e. 0°).
public static readonly AngleSingle ZeroAngle { get; }
Property Value
Type | Description |
---|---|
AngleSingle |
Methods
Add(AngleSingle, AngleSingle)
Adds two Stride.Core.Mathematics.AngleSingle objects and returns the result.
public static AngleSingle Add(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The first object to add. |
AngleSingle | right | The second object to add. |
Returns
Type | Description |
---|---|
AngleSingle | The value of the two objects added together. |
CompareTo(AngleSingle)
Compares this instance to a second Stride.Core.Mathematics.AngleSingle and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object.
public int CompareTo(AngleSingle other)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | other | The object to compare. |
Returns
Type | Description |
---|---|
System.Int32 | A signed integer that indicates the relationship of the current instance to the obj parameter. If the value is less than zero, the current instance is less than the other. If the value is zero, the current instance is equal to the other. If the value is greater than zero, the current instance is greater than the other. |
CompareTo(Object)
Compares this instance to a specified object and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object.
public int CompareTo(object other)
Parameters
Type | Name | Description |
---|---|---|
System.Object | other | The object to compare. |
Returns
Type | Description |
---|---|
System.Int32 | A signed integer that indicates the relationship of the current instance to the obj parameter. If the value is less than zero, the current instance is less than the other. If the value is zero, the current instance is equal to the other. If the value is greater than zero, the current instance is greater than the other. |
Divide(AngleSingle, AngleSingle)
Divides two Stride.Core.Mathematics.AngleSingle objects and returns the result.
public static AngleSingle Divide(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The numerator object. |
AngleSingle | right | The denominator object. |
Returns
Type | Description |
---|---|
AngleSingle | The value of the two objects divided. |
Equals(AngleSingle)
Returns a value that indicates whether the current instance and a specified Stride.Core.Mathematics.AngleSingle object have the same value.
public bool Equals(AngleSingle other)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | other | The object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if this Stride.Core.Mathematics.AngleSingle object and another have the same value; otherwise, false. |
Equals(Object)
Returns a value that indicates whether the current instance and a specified object have the same value.
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the obj parameter is a Stride.Core.Mathematics.AngleSingle object or a type capable of implicit conversion to a Stride.Core.Mathematics.AngleSingle value, and its value is equal to the value of the current Stride.Core.Mathematics.Angle object; otherwise, false. |
Overrides
GetHashCode()
Returns a hash code for this Stride.Core.Mathematics.AngleSingle instance.
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer hash code. |
Overrides
Max(AngleSingle, AngleSingle)
Compares two Stride.Core.Mathematics.AngleSingle instances and returns the greater angle.
public static AngleSingle Max(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The first Stride.Core.Mathematics.AngleSingle instance to compare. |
AngleSingle | right | The second Stride.Core.Mathematics.AngleSingle instance to compare. |
Returns
Type | Description |
---|---|
AngleSingle | The greater of the two given Stride.Core.Mathematics.AngleSingle instances. |
Min(AngleSingle, AngleSingle)
Compares two Stride.Core.Mathematics.AngleSingle instances and returns the smaller angle.
public static AngleSingle Min(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The first Stride.Core.Mathematics.AngleSingle instance to compare. |
AngleSingle | right | The second Stride.Core.Mathematics.AngleSingle instance to compare. |
Returns
Type | Description |
---|---|
AngleSingle | The smaller of the two given Stride.Core.Mathematics.AngleSingle instances. |
Multiply(AngleSingle, AngleSingle)
Multiplies two Stride.Core.Mathematics.AngleSingle objects and returns the result.
public static AngleSingle Multiply(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The first object to multiply. |
AngleSingle | right | The second object to multiply. |
Returns
Type | Description |
---|---|
AngleSingle | The value of the two objects multiplied together. |
Subtract(AngleSingle, AngleSingle)
Subtracts two Stride.Core.Mathematics.AngleSingle objects and returns the result.
public static AngleSingle Subtract(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The first object to subtract. |
AngleSingle | right | The second object to subtract. |
Returns
Type | Description |
---|---|
AngleSingle | The value of the two objects subtracted. |
ToString()
Returns a System.String that represents this instance.
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Overrides
ToString(IFormatProvider)
Returns a System.String that represents this instance.
public string ToString(IFormatProvider formatProvider)
Parameters
Type | Name | Description |
---|---|---|
System.IFormatProvider | formatProvider | The format provider. |
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
ToString(String)
Returns a System.String that represents this instance.
public string ToString(string format)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format. |
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
ToString(String, IFormatProvider)
Returns a System.String that represents this instance.
public string ToString(string format, IFormatProvider formatProvider)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format. |
System.IFormatProvider | formatProvider | The format provider. |
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Wrap()
Wraps this Stride.Core.Mathematics.AngleSingle to be in the range [π, -π].
public void Wrap()
Wrap(AngleSingle)
Wraps the Stride.Core.Mathematics.AngleSingle given in the value argument to be in the range [π, -π].
public static AngleSingle Wrap(AngleSingle value)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | value | A Stride.Core.Mathematics.AngleSingle to wrap. |
Returns
Type | Description |
---|---|
AngleSingle | The Stride.Core.Mathematics.AngleSingle that is wrapped. |
WrapPositive()
Wraps this Stride.Core.Mathematics.AngleSingle to be in the range [0, 2π).
public void WrapPositive()
WrapPositive(AngleSingle)
Wraps the Stride.Core.Mathematics.AngleSingle given in the value argument to be in the range [0, 2π).
public static AngleSingle WrapPositive(AngleSingle value)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | value | A Stride.Core.Mathematics.AngleSingle to wrap. |
Returns
Type | Description |
---|---|
AngleSingle | The Stride.Core.Mathematics.AngleSingle that is wrapped. |
Operators
Addition(AngleSingle, AngleSingle)
Adds two Stride.Core.Mathematics.AngleSingle objects and returns the result.
public static AngleSingle operator +(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The first object to add. |
AngleSingle | right | The second object to add. |
Returns
Type | Description |
---|---|
AngleSingle | The value of the two objects added together. |
Division(AngleSingle, AngleSingle)
Divides two Stride.Core.Mathematics.AngleSingle objects and returns the result.
public static AngleSingle operator /(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The numerator object. |
AngleSingle | right | The denominator object. |
Returns
Type | Description |
---|---|
AngleSingle | The value of the two objects divided. |
Equality(AngleSingle, AngleSingle)
Returns a System.Boolean that indicates whether the values of two Stride.Core.Mathematics.Angle objects are equal.
public static bool operator ==(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The first object to compare. |
AngleSingle | right | The second object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | True if the left and right parameters have the same value; otherwise, false. |
GreaterThan(AngleSingle, AngleSingle)
Returns a System.Boolean that indicates whether a Stride.Core.Mathematics.Angle object is greater than another Stride.Core.Mathematics.AngleSingle object.
public static bool operator>(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The first object to compare. |
AngleSingle | right | The second object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | True if left is greater than right; otherwise, false. |
GreaterThanOrEqual(AngleSingle, AngleSingle)
Returns a System.Boolean that indicates whether a Stride.Core.Mathematics.Angle object is greater than or equal to another Stride.Core.Mathematics.AngleSingle object.
public static bool operator >=(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The first object to compare. |
AngleSingle | right | The second object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | True if left is greater than or equal to right; otherwise, false. |
Inequality(AngleSingle, AngleSingle)
Returns a System.Boolean that indicates whether the values of two Stride.Core.Mathematics.Angle objects are not equal.
public static bool operator !=(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The first object to compare. |
AngleSingle | right | The second object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | True if the left and right parameters do not have the same value; otherwise, false. |
LessThan(AngleSingle, AngleSingle)
Returns a System.Boolean that indicates whether a Stride.Core.Mathematics.Angle object is less than another Stride.Core.Mathematics.AngleSingle object.
public static bool operator <(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The first object to compare. |
AngleSingle | right | The second object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | True if left is less than right; otherwise, false. |
LessThanOrEqual(AngleSingle, AngleSingle)
Returns a System.Boolean that indicates whether a Stride.Core.Mathematics.Angle object is less than or equal to another Stride.Core.Mathematics.AngleSingle object.
public static bool operator <=(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The first object to compare. |
AngleSingle | right | The second object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | True if left is less than or equal to right; otherwise, false. |
Multiply(AngleSingle, AngleSingle)
Multiplies two Stride.Core.Mathematics.AngleSingle objects and returns the result.
public static AngleSingle operator *(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The first object to multiply. |
AngleSingle | right | The second object to multiply. |
Returns
Type | Description |
---|---|
AngleSingle | The value of the two objects multiplied together. |
Subtraction(AngleSingle, AngleSingle)
Subtracts two Stride.Core.Mathematics.AngleSingle objects and returns the result.
public static AngleSingle operator -(AngleSingle left, AngleSingle right)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | left | The first object to subtract |
AngleSingle | right | The second object to subtract. |
Returns
Type | Description |
---|---|
AngleSingle | The value of the two objects subtracted. |
UnaryNegation(AngleSingle)
Returns the the negated value of the Stride.Core.Mathematics.AngleSingle operand.
public static AngleSingle operator -(AngleSingle value)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | value | A Stride.Core.Mathematics.AngleSingle object. |
Returns
Type | Description |
---|---|
AngleSingle | The negated value of the value parameter. |
UnaryPlus(AngleSingle)
Returns the value of the Stride.Core.Mathematics.AngleSingle operand. (The sign of the operand is unchanged.)
public static AngleSingle operator +(AngleSingle value)
Parameters
Type | Name | Description |
---|---|---|
AngleSingle | value | A Stride.Core.Mathematics.AngleSingle object. |
Returns
Type | Description |
---|---|
AngleSingle | The value of the value parameter. |