Show / Hide Table of Contents

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 Source

Four

Four [4]

Declaration
public static T Four { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

FourOverPiSquared

4/(π^2)

Declaration
public static T FourOverPiSquared { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

FourOverπSquared

4/(π^2)

Declaration
public static T FourOverπSquared { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

Negative4OverPiSquared

-4/(π^2)

Declaration
public static T Negative4OverPiSquared { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

Negative4OverπSquared

-4/(π^2)

Declaration
public static T Negative4OverπSquared { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

NegativeOne

Negative One [-1]

Declaration
public static T NegativeOne { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

One

One [1]

Declaration
public static T One { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

Pi

π [3.14...]

Declaration
public static T Pi { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

Pi2

2π [6.28...]

Declaration
public static T Pi2 { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

Pi3Over2

3π/2

Declaration
public static T Pi3Over2 { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

PiOver2

π / 2

Declaration
public static T PiOver2 { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

Ten

Ten [10]

Declaration
public static T Ten { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

Three

Three [3]

Declaration
public static T Three { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

Two

Two [2]

Declaration
public static T Two { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

Zero

Zero [0]

Declaration
public static T Zero { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

π

π [3.14...]

Declaration
public static T π { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

π2

2π [6.28...]

Declaration
public static T π2 { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

π3Over2

3π/2

Declaration
public static T π3Over2 { get; set; }
Property Value
Type Description
T
| Improve this Doc View Source

πOver2

π / 2

Declaration
public static T πOver2 { get; set; }
Property Value
Type Description
T

Methods

| Improve this Doc View Source

ComputePi(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.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX