Closed TrueCP6 closed 4 years ago
AbsoluteValue
Add
And
AngleBetweenVectors
AngleDifference
ArccosineInDegrees
ArccosineInRadians
ArcsineInDegrees
ArcsineInRadians
ArctangentInDegrees
ArctangentInRadians
Compare
CosineFromDegrees
CosineFromRadians
CrossProduct
DirectionFromAngles
DirectionTowards
DistanceBetween
Divide
DotProduct
HorizontalAngleFromDirection
Max
Min
Modulo
Multiply
Normalize
Not
Or
RaiseToPower
RoundToInteger
SineFromDegrees
SineFromRadians
SquareRoot
Subtract
TangentFromDegrees
TangentFromRadians
VectorTowards
VerticalAngleFromDirection
XOf
YOf
ZOf
Thanks to @Zezombye for a lot of the optimisations.
To do:
Up
Down
Left
Right
Forward
Backward
Stuff that could be done but would be a pain and wouldn't be that useful:
ArrayContains
ArraySlice
CountOf
FilteredArray
FirstOf
IsTrueForAll
IsTrueForAny
LastOf
IndexOfArrayValue
RemoveFromArray
SortedArray
ValueInArray
Careful though :
Does the short-circuiting only happen with number constants or can it happen with a variable or other elements?
Everything, like in JS.
Ready for review
AbsoluteValue
Add
And
AngleBetweenVectors
AngleDifference
ArccosineInDegrees
ArccosineInRadians
ArcsineInDegrees
ArcsineInRadians
ArctangentInDegrees
ArctangentInRadians
Compare
CosineFromDegrees
CosineFromRadians
CrossProduct
DirectionFromAngles
DirectionTowards
DistanceBetween
Divide
DotProduct
HorizontalAngleFromDirection
Max
Min
Modulo
Multiply
Normalize
Not
Or
RaiseToPower
RoundToInteger
SineFromDegrees
SineFromRadians
SquareRoot
Subtract
TangentFromDegrees
TangentFromRadians
VectorTowards
VerticalAngleFromDirection
XOf
YOf
ZOf
Thanks to @Zezombye for a lot of the optimisations.
To do:
Up
,Down
,Left
,Right
,Forward
,Backward
Stuff that could be done but would be a pain and wouldn't be that useful:
ArrayContains
ArraySlice
CountOf
FilteredArray
FirstOf
IsTrueForAll
IsTrueForAny
LastOf
IndexOfArrayValue
RemoveFromArray
SortedArray
ValueInArray