Class ExMPred
Functions that return boolean values.
Inheritance
System.Object
ExMPred
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: cs.temp.dll.dll
Syntax
public static class ExMPred
Methods
And(tbool, tbool)
Return true iff both arguments are true.
Declaration
public static tbool And(tbool pr1, tbool pr2)
Parameters
Type |
Name |
Description |
tbool |
pr1 |
First predicate
|
tbool |
pr2 |
Second predicate
|
Returns
DivBy(tfloat, tfloat)
Declaration
public static tbool DivBy(tfloat by, tfloat x)
Parameters
Type |
Name |
Description |
tfloat |
by |
|
tfloat |
x |
|
Returns
Eq<T>(TEx<T>, TEx<T>)
Return true iff the first argument is equal to the second.
Declaration
public static tbool Eq<T>(TEx<T> b1, TEx<T> b2)
Parameters
Type |
Name |
Description |
TEx<T> |
b1 |
|
TEx<T> |
b2 |
|
Returns
Type Parameters
Even(tfloat)
Returns true if the number is even.
Declaration
public static tbool Even(tfloat b)
Parameters
Type |
Name |
Description |
tfloat |
b |
|
Returns
False()
Declaration
public static tbool False()
Returns
Geq<T>(TEx<T>, TEx<T>)
Return true iff the first argument is greater than or equal to the second.
Declaration
public static tbool Geq<T>(TEx<T> b1, TEx<T> b2)
Parameters
Type |
Name |
Description |
TEx<T> |
b1 |
First BPY function
|
TEx<T> |
b2 |
Second BPY function
|
Returns
Type Parameters
Gt<T>(TEx<T>, TEx<T>)
Return true iff the first argument is greater than the second.
Declaration
public static tbool Gt<T>(TEx<T> b1, TEx<T> b2)
Parameters
Type |
Name |
Description |
TEx<T> |
b1 |
First BPY function
|
TEx<T> |
b2 |
Second BPY function
|
Returns
Type Parameters
In(tfloat, tfloat, tfloat)
Return true iff the first argument is strictly between the second and third.
Declaration
public static tbool In(tfloat b, tfloat br1, tfloat br2)
Parameters
Type |
Name |
Description |
tfloat |
b |
First BPY function
|
tfloat |
br1 |
Lower bound BPY function
|
tfloat |
br2 |
Upper bound BPY function
|
Returns
Leq<T>(TEx<T>, TEx<T>)
Return true iff the first argument is less than or equal to the second.
Declaration
public static tbool Leq<T>(TEx<T> b1, TEx<T> b2)
Parameters
Type |
Name |
Description |
TEx<T> |
b1 |
First BPY function
|
TEx<T> |
b2 |
Second BPY function
|
Returns
Type Parameters
Lt<T>(TEx<T>, TEx<T>)
Return true iff the first argument is less than the second.
Declaration
public static tbool Lt<T>(TEx<T> b1, TEx<T> b2)
Parameters
Type |
Name |
Description |
TEx<T> |
b1 |
First BPY function
|
TEx<T> |
b2 |
Second BPY function
|
Returns
Type Parameters
Neq<T>(TEx<T>, TEx<T>)
Return true iff the first argument is not equal to the second.
Declaration
public static tbool Neq<T>(TEx<T> b1, TEx<T> b2)
Parameters
Type |
Name |
Description |
TEx<T> |
b1 |
|
TEx<T> |
b2 |
|
Returns
Type Parameters
Not(tbool)
Return true iff the argument is false.
Declaration
public static tbool Not(tbool pred)
Parameters
Type |
Name |
Description |
tbool |
pred |
|
Returns
Odd(tfloat)
Returns true if the number is odd.
Declaration
public static tbool Odd(tfloat b)
Parameters
Type |
Name |
Description |
tfloat |
b |
|
Returns
OffScreen(TEx<Vector2>)
Return true if the location not within the playing field.
Declaration
public static TEx<bool> OffScreen(TEx<Vector2> loc)
Parameters
Type |
Name |
Description |
TEx<Vector2> |
loc |
|
Returns
Type |
Description |
TEx<System.Boolean> |
|
OffScreenBy(TEx<Single>, TEx<Vector2>)
Return true if the location is more than BY units (square expansion) outside of the playing field.
Declaration
public static TEx<bool> OffScreenBy(TEx<float> f, TEx<Vector2> loc)
Parameters
Type |
Name |
Description |
TEx<System.Single> |
f |
|
TEx<Vector2> |
loc |
|
Returns
Type |
Description |
TEx<System.Boolean> |
|
OnScreen(TEx<Vector2>)
Return true iff the location is within the playing field.
Declaration
public static TEx<bool> OnScreen(TEx<Vector2> loc)
Parameters
Type |
Name |
Description |
TEx<Vector2> |
loc |
|
Returns
Type |
Description |
TEx<System.Boolean> |
|
OnScreenBy(TEx<Single>, TEx<Vector2>)
Return true if the location is within BY units (square expansion) of the edge of the playing field.
Declaration
public static TEx<bool> OnScreenBy(TEx<float> by, TEx<Vector2> loc)
Parameters
Type |
Name |
Description |
TEx<System.Single> |
by |
|
TEx<Vector2> |
loc |
|
Returns
Type |
Description |
TEx<System.Boolean> |
|
Or(tbool, tbool)
Return true iff one or more arguments are true.
Declaration
public static tbool Or(tbool pr1, tbool pr2)
Parameters
Type |
Name |
Description |
tbool |
pr1 |
First predicate
|
tbool |
pr2 |
Second predicate
|
Returns
True()
Declaration
public static tbool True()
Returns