Class Constant<T>
Contains generic static numerical constant values.
Inheritance
System.Object
Constant<T>
Namespace: Towel
Assembly: Towel.dll
Syntax
public static class Constant<T> : object
Type Parameters
Name | Description |
---|---|
T | The generic numeric type of the constants. |
Properties
| Improve this Doc View SourceFour
Four [4]
Declaration
public static T Four { get; set; }
Property Value
Type | Description |
---|---|
T |
FourOverPiSquared
4/(π^2)
Declaration
public static T FourOverPiSquared { get; set; }
Property Value
Type | Description |
---|---|
T |
FourOverπSquared
4/(π^2)
Declaration
public static T FourOverπSquared { get; set; }
Property Value
Type | Description |
---|---|
T |
Negative4OverPiSquared
-4/(π^2)
Declaration
public static T Negative4OverPiSquared { get; set; }
Property Value
Type | Description |
---|---|
T |
Negative4OverπSquared
-4/(π^2)
Declaration
public static T Negative4OverπSquared { get; set; }
Property Value
Type | Description |
---|---|
T |
NegativeOne
Negative One [-1]
Declaration
public static T NegativeOne { get; set; }
Property Value
Type | Description |
---|---|
T |
One
One [1]
Declaration
public static T One { get; set; }
Property Value
Type | Description |
---|---|
T |
Pi
π [3.14...]
Declaration
public static T Pi { get; set; }
Property Value
Type | Description |
---|---|
T |
Pi2
2π [6.28...]
Declaration
public static T Pi2 { get; set; }
Property Value
Type | Description |
---|---|
T |
Pi3Over2
3π/2
Declaration
public static T Pi3Over2 { get; set; }
Property Value
Type | Description |
---|---|
T |
PiOver2
π / 2
Declaration
public static T PiOver2 { get; set; }
Property Value
Type | Description |
---|---|
T |
Ten
Ten [10]
Declaration
public static T Ten { get; set; }
Property Value
Type | Description |
---|---|
T |
Three
Three [3]
Declaration
public static T Three { get; set; }
Property Value
Type | Description |
---|---|
T |
Two
Two [2]
Declaration
public static T Two { get; set; }
Property Value
Type | Description |
---|---|
T |
Zero
Zero [0]
Declaration
public static T Zero { get; set; }
Property Value
Type | Description |
---|---|
T |
π
π [3.14...]
Declaration
public static T π { get; set; }
Property Value
Type | Description |
---|---|
T |
π2
2π [6.28...]
Declaration
public static T π2 { get; set; }
Property Value
Type | Description |
---|---|
T |
π3Over2
3π/2
Declaration
public static T π3Over2 { get; set; }
Property Value
Type | Description |
---|---|
T |
πOver2
π / 2
Declaration
public static T πOver2 { get; set; }
Property Value
Type | Description |
---|---|
T |
Methods
| Improve this Doc View SourceComputePi(Nullable<Predicate<T>>)
Computes the value of pi for the provided generic type.
Declaration
public static T ComputePi(Predicate<T>? predicate = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<Predicate<T>> | predicate | The cancellation token for cutting off computation. |
Returns
Type | Description |
---|---|
T | The computed value of pi. |