NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Math Methods

The methods of the Math class are listed below. For a complete list of Math class members, see the Math Members topic.

Public:

Abs Overloaded. Returns the absolute value of the specified number.
Acos Returns the arc cosine (in radians) of a specified number. The arc cosine is the angle whose cosine is the specified number.
Asin Returns the arc sine (in radians) of a specified number. The arc sine is the angle whose sine is the specified number.
Atan Returns the arc tangent (in radians) of a specified number. The arc tangent is the angle whose tangent is the specified number.
Atan2 Returns the arc tangent of a number whose angle is specified by drawing a vector from the origin (0,0) to a point whose coordinates are (x, y). The arc tangent is the angle whose tangent is the quotient, y/ x.
Ceil Rounds a number up to the smallest whole number greater than or equal to the number.
Cos Returns the cosine of the specified angle, measured in radians.
Cosh [To be supplied.]
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
Exp Returns e raised to the specified power.
Floor Rounds a number down to the smallest whole number less than or equal to the number.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the Object.
IEEERemainder Returns the remainder of x divided by y, as defined by the remainder operation in Section5.1 of ANSI/IEEE Std 754-1985; IEEE Standard for Binary Floating-Point Arithmetic; Institute of Electrical and Electronics Engineers, Inc; 1985.
Log Overloaded. [To be supplied.]
Log10 Returns the base 10 logarithm of a specified number.
Max Overloaded. Returns the maximum of two numbers.
Min Overloaded. Returns the smaller of two numbers.
Pow Raises a specified number to the specified power.
Rint Returns a number rounded to the nearest integer.
Round Rounds a number to the nearest whole number, as specified by Section 5.5 of the IEEE 754 standard.
Sign Overloaded. Returns the sign of a number.
Sin Returns the sine of a specified angle, measured in radians.
Sinh [To be supplied.]
Sqrt Returns the square root of a specified number.
Tan Returns the tangent of a specified angle, measured in radians.
Tanh [To be supplied.]
ToString (inherited from Object) Returns a String that represents the current Object.

Protected:

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

Math Class | System Namespace