summaryrefslogtreecommitdiff
path: root/lc
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-02-03 17:12:31 +0100
committerPéter Diviánszky <divipp@gmail.com>2016-02-03 17:12:31 +0100
commitcd509ac8dead8465a036824eb6188ecdc58c9a25 (patch)
tree92b951166eb18f94f1aea540abf4f2766f9d819d /lc
parentc1be55f996609adc15f9f1faf10cc4b707def08b (diff)
add more aliases to primitives
Diffstat (limited to 'lc')
-rw-r--r--lc/Prelude.lc12
1 files changed, 12 insertions, 0 deletions
diff --git a/lc/Prelude.lc b/lc/Prelude.lc
index 13911a83..0568983c 100644
--- a/lc/Prelude.lc
+++ b/lc/Prelude.lc
@@ -197,9 +197,15 @@ degrees = PrimDegrees
197sin = PrimSin 197sin = PrimSin
198cos = PrimCos 198cos = PrimCos
199tan = PrimTan 199tan = PrimTan
200sinh = PrimSinH
201cosh = PrimCosH
202tanh = PrimTanH
200asin = PrimASin 203asin = PrimASin
204asinh = PrimASinH
201acos = PrimACos 205acos = PrimACos
206acosh = PrimACosH
202atan = PrimATan 207atan = PrimATan
208atanh = PrimATanH
203atan2 = PrimATan2 209atan2 = PrimATan2
204 210
205-- exponential functions 211-- exponential functions
@@ -236,6 +242,11 @@ faceforward = PrimFaceForward
236reflect = PrimReflect 242reflect = PrimReflect
237refract = PrimRefract 243refract = PrimRefract
238 244
245transpose = PrimTranspose
246det = PrimDeterminant
247inv = PrimInverse
248outer = PrimOuterProduct
249
239-- operators 250-- operators
240infixl 7 *, /, % 251infixl 7 *, /, %
241infixl 6 +, - 252infixl 6 +, -
@@ -271,6 +282,7 @@ a > b = PrimGreaterThan a b
271-- logical 282-- logical
272a && b = PrimAnd a b 283a && b = PrimAnd a b
273a || b = PrimOr a b 284a || b = PrimOr a b
285xor = PrimXor
274not a = PrimNot a 286not a = PrimNot a
275any a = PrimAny a 287any a = PrimAny a
276all a = PrimAll a 288all a = PrimAll a