- implemented dot and cross products (not that I'd ever expect these to become useful in a game like Doom...)

This commit is contained in:
Christoph Oelckers 2016-10-29 10:16:00 +02:00
commit b5222f08e8
3 changed files with 95 additions and 5 deletions

View file

@ -2680,14 +2680,13 @@ FxExpression *ZCCCompiler::ConvertNode(ZCC_TreeNode *ast)
case PEX_ArrayAccess:
return new FxArrayElement(left, right);
// todo: These do not have representations in DECORATE and no implementation exists yet.
case PEX_Concat:
case PEX_Is:
// vector operations will be done later.
case PEX_CrossProduct:
case PEX_DotProduct:
return new FxDotCross(tok, left, right);
// todo: These do not have representations in DECORATE and no implementation exists yet.
case PEX_Concat:
case PEX_Is:
default:
I_Error("Binary operator %d not implemented yet", op);