Class BPYRepo
Functions that take in parametric information and return a number.
Inheritance
System.Object
BPYRepo
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 BPYRepo
Methods
AngleTo(ExTP)
Returns Atan(loc - this.Loc) in degrees.
Declaration
public static ExBPY AngleTo(ExTP loc)
Parameters
Type |
Name |
Description |
ExTP |
loc |
|
Returns
AngleToPlayer()
Returns Atan(Player.Loc - this.Loc) in degrees.
Declaration
public static ExBPY AngleToPlayer()
Returns
DistTo(ExTP)
Get distance (square root) from current location to a point.
Declaration
public static ExBPY DistTo(ExTP loc)
Parameters
Type |
Name |
Description |
ExTP |
loc |
|
Returns
LogsumShift(String, ExBPY, ExBPY, ExBPY, ExBPY)
Declaration
public static ExBPY LogsumShift(string pivotVar, ExBPY sharpness, ExBPY pivot, ExBPY f1, ExBPY f2)
Parameters
Type |
Name |
Description |
System.String |
pivotVar |
|
ExBPY |
sharpness |
|
ExBPY |
pivot |
|
ExBPY |
f1 |
|
ExBPY |
f2 |
|
Returns
LogsumShiftAT(ExBPY, ExBPY, ExBPY, ExBPY)
Logsumshift using "t" from a let statement as a pivot variable.
Declaration
public static ExBPY LogsumShiftAT(ExBPY sharpness, ExBPY pivot, ExBPY f1, ExBPY f2)
Parameters
Type |
Name |
Description |
ExBPY |
sharpness |
|
ExBPY |
pivot |
|
ExBPY |
f1 |
|
ExBPY |
f2 |
|
Returns
LogsumShiftT(ExBPY, ExBPY, ExBPY, ExBPY)
Logsumshift using t as a pivot variable
Declaration
public static ExBPY LogsumShiftT(ExBPY sharpness, ExBPY pivot, ExBPY f1, ExBPY f2)
Parameters
Type |
Name |
Description |
ExBPY |
sharpness |
|
ExBPY |
pivot |
|
ExBPY |
f1 |
|
ExBPY |
f2 |
|
Returns
LogsumShiftT3(ExBPY, ExBPY, ExBPY, ExBPY, ExBPY, ExBPY, ExBPY)
Logsumshift twice, using t as a pivot variable, first from f1 to f2 and then from f2 to f3
Declaration
public static ExBPY LogsumShiftT3(ExBPY sharp, ExBPY pivot, ExBPY sharp2, ExBPY pivot2, ExBPY f1, ExBPY f2, ExBPY f3)
Parameters
Type |
Name |
Description |
ExBPY |
sharp |
|
ExBPY |
pivot |
|
ExBPY |
sharp2 |
|
ExBPY |
pivot2 |
|
ExBPY |
f1 |
|
ExBPY |
f2 |
|
ExBPY |
f3 |
|
Returns
pDH()
Declaration
public static ExBPY pDH()
Returns
pDL()
Declaration
public static ExBPY pDL()
Returns
pDN()
Declaration
public static ExBPY pDN()
Returns
Pivot(ExBPY, ExBPY, ExBPY, ExBPY)
Declaration
public static ExBPY Pivot(ExBPY pivotVar, ExBPY pivot, ExBPY f1, ExBPY f2)
Parameters
Type |
Name |
Description |
ExBPY |
pivotVar |
|
ExBPY |
pivot |
|
ExBPY |
f1 |
|
ExBPY |
f2 |
|
Returns
Rehash(ExBPY)
Random calls are dependent on the object's parametric ID.
This function rehashes the ID for the child call, so
any other random parametrics will no longer be dependent on the child call.
Declaration
public static ExBPY Rehash(ExBPY b)
Parameters
Type |
Name |
Description |
ExBPY |
b |
Target parametric-number function
|
Returns
SoftmaxShift(String, ExBPY, ExBPY, ExBPY, ExBPY)
Smoothly pivot from one function to another.
Functionality is similar to Pivot, but you must specify the direction, and because this relies on softmax,
the value f2(t) - f2(pivot) + f1(pivot) must always be greater than f1(pivot) after the pivot point
and less than before the pivot point (when sharpness is positive).
Declaration
public static ExBPY SoftmaxShift(string pivotVar, ExBPY sharpness, ExBPY pivot, ExBPY f1, ExBPY f2)
Parameters
Type |
Name |
Description |
System.String |
pivotVar |
The variable upon which pivoting is performed. Should be either "p" (firing index) or "t" (time) or a reference variable.
|
ExBPY |
sharpness |
The higher the absolute value of this, the more quickly the result will converge.
Set negative for softmin.
|
ExBPY |
pivot |
The value of the variable at which pivoting is performed
|
ExBPY |
f1 |
Starting equation
|
ExBPY |
f2 |
Equation after pivot
|
Returns
SoftmaxShiftT(ExBPY, ExBPY, ExBPY, ExBPY)
Declaration
public static ExBPY SoftmaxShiftT(ExBPY sharpness, ExBPY pivot, ExBPY f1, ExBPY f2)
Parameters
Type |
Name |
Description |
ExBPY |
sharpness |
|
ExBPY |
pivot |
|
ExBPY |
f1 |
|
ExBPY |
f2 |
|
Returns
SoftmaxShiftT3(ExBPY, ExBPY, ExBPY, ExBPY, ExBPY, ExBPY, ExBPY)
Declaration
public static ExBPY SoftmaxShiftT3(ExBPY sharp, ExBPY pivot, ExBPY sharp2, ExBPY pivot2, ExBPY f1, ExBPY f2, ExBPY f3)
Parameters
Type |
Name |
Description |
ExBPY |
sharp |
|
ExBPY |
pivot |
|
ExBPY |
sharp2 |
|
ExBPY |
pivot2 |
|
ExBPY |
f1 |
|
ExBPY |
f2 |
|
ExBPY |
f3 |
|
Returns
StarRot1()
Default randomized star rotation (slow) in one direction.
Declaration
public static ExBPY StarRot1()
Returns
StarRot2()
Default randomized star rotation (medium) in one direction.
Declaration
public static ExBPY StarRot2()
Returns
StarRot3()
Default randomized star rotation (fast) in one direction.
Declaration
public static ExBPY StarRot3()
Returns
StarRot4()
Default randomized star rotation (very fast) in one direction.
Declaration
public static ExBPY StarRot4()
Returns
StarRotB1()
Default randomized star rotation (slow) in two directions.
Declaration
public static ExBPY StarRotB1()
Returns
StarRotB2()
Default randomized star rotation (medium) in two directions.
Declaration
public static ExBPY StarRotB2()
Returns
StarRotB3()
Default randomized star rotation (fast) in two directions.
Declaration
public static ExBPY StarRotB3()
Returns
StarRotB4()
Default randomized star rotation (very fast) in two directions.
Declaration
public static ExBPY StarRotB4()
Returns
tDH()
Declaration
public static ExBPY tDH()
Returns
tDL()
Declaration
public static ExBPY tDL()
Returns
tDN()
Declaration
public static ExBPY tDN()
Returns
ToLR(ExTP)
Returns the x-position of the left/right wall that the location is closer to.
Declaration
public static ExBPY ToLR(ExTP loc)
Parameters
Type |
Name |
Description |
ExTP |
loc |
|
Returns
ToRL(ExTP)
Returns the x-position of the left/right wall that the location is farther from.
Declaration
public static ExBPY ToRL(ExTP loc)
Parameters
Type |
Name |
Description |
ExTP |
loc |
|
Returns