- added LengthSquared and Angle intrinsics for all vector types, also allow calling VectorAngle with a full vector as a single parameter.
This commit is contained in:
parent
54f1cabed9
commit
f3b33f7cf8
4 changed files with 126 additions and 24 deletions
|
|
@ -248,6 +248,7 @@ enum EFxType
|
|||
EFX_Conditional,
|
||||
EFX_Abs,
|
||||
EFX_ATan2,
|
||||
EFX_ATan2Vec,
|
||||
EFX_New,
|
||||
EFX_MinMax,
|
||||
EFX_Random,
|
||||
|
|
@ -1201,6 +1202,18 @@ private:
|
|||
ExpEmit ToReg(VMFunctionBuilder *build, FxExpression *val);
|
||||
};
|
||||
|
||||
class FxATan2Vec : public FxExpression
|
||||
{
|
||||
FxExpression* vval;
|
||||
|
||||
public:
|
||||
|
||||
FxATan2Vec(FxExpression* y, const FScriptPosition& pos);
|
||||
~FxATan2Vec();
|
||||
FxExpression* Resolve(FCompileContext&);
|
||||
ExpEmit Emit(VMFunctionBuilder* build);
|
||||
};
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue