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()
Namespace: Danmokou.DMath.Functions
Assembly: cs.temp.dll.dll
Syntax
public static class ExMPred
Methods
DivBy(tfloat, tfloat)
Declaration
public static tbool DivBy(tfloat by, tfloat x)
Parameters
Type | Name | Description |
---|---|---|
tfloat | by | |
tfloat | x |
Returns
Type | Description |
---|---|
tbool |
Even(tfloat)
Returns true if the number is even.
Declaration
public static tbool Even(tfloat b)
Parameters
Type | Name | Description |
---|---|---|
tfloat | b |
Returns
Type | Description |
---|---|
tbool |
False()
Returns false.
Declaration
public static tbool False()
Returns
Type | Description |
---|---|
tbool |
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
Type | Description |
---|---|
tbool |
Odd(tfloat)
Returns true if the number is odd.
Declaration
public static tbool Odd(tfloat b)
Parameters
Type | Name | Description |
---|---|---|
tfloat | b |
Returns
Type | Description |
---|---|
tbool |
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> |
True()
Return true.
Declaration
public static tbool True()
Returns
Type | Description |
---|---|
tbool |