Toolkit Class

Provides the dependency layer to customize.

C#
public static class Toolkit
Inheritance
Toolkit

Properties

Sqrt

Gets or sets the function that returns the square root of a specified number.

Sin

Gets or sets the function that returns the sine of the specified angle in radians.

Cos

Gets or sets the function that returns the cosine of the specified angle in radians.

Atan2

Gets or sets the function that returns the angle in radian whose tangent is the quotient of two specified numbers.

Properties Detail

Sqrt

Gets or sets the function that returns the square root of a specified number.

C#
public static Func<float, float> Sqrt { get; set; }

Property Value

Remarks

The default function is Math.Sqrt(double).

Sin

Gets or sets the function that returns the sine of the specified angle in radians.

C#
public static Func<float, float> Sin { get; set; }

Property Value

Remarks

The default function is Math.Sin(double).

Cos

Gets or sets the function that returns the cosine of the specified angle in radians.

C#
public static Func<float, float> Cos { get; set; }

Property Value

Remarks

The default function is Math.Cos(double).

Atan2

Gets or sets the function that returns the angle in radian whose tangent is the quotient of two specified numbers.

C#
public static Func<float, float, float> Atan2 { get; set; }

Property Value

Remarks

The default function is Math.Atan2(double, double).