Click or drag to resize
Angles Class
Contains utility methods to work with angles. All parameter values use the unit radian for angles.
Inheritance Hierarchy
SystemObject
  Slash.Math.UtilsAngles

Namespace: Slash.Math.Utils
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public static class Angles

The Angles type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAngleDiff
Computes the smallest difference from first to second angle. Takes into account cases like AngleDiff( -Pi, Pi ) == 0. Returned radian angle is between (-Pi, Pi).
Public methodStatic memberAngleDiffPositive
Computes the smallest difference from first to second angle. Takes into account cases like AngleDiff( -Pi, Pi ) == 0. Returned radian angle is between (0, 2*Pi).
Public methodStatic memberClampAngle
Clamps the angle to -Pi and Pi.
Public methodStatic memberClampAnglePositive
Clamps the angle to 0 and 2*PI.
Public methodStatic memberCurveAngle
Interpolates an angle from a start value to an end value.
Public methodStatic memberDeg2Rad
Converts a degree angle to a radian angle.
Public methodStatic memberRad2Deg
Converts a radian angle to a degree angle.
Public methodStatic memberSlerp
Spherical interpolation of a value from a start angle to an end value for the passed step.
Top
Fields
  NameDescription
Public fieldStatic memberDeg2RadFactor
Factor to convert a degree angle to a radian angle.
Public fieldStatic memberRad2DegFactor
Factor to convert a radian angle to a degree angle.
Top
See Also