MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / addFunctionTrig

Function addFunctionTrig

src/builtin/module_builtin_math.cpp:163–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161 // trig types
162 template <typename TT>
163 void addFunctionTrig(Module & mod, const ModuleLibrary & lib) {
164 // policy ret arg1 arg2 name
165 mod.addFunction( (new BuiltInFn<Sim_Sin<TT>, TT, TT>("sin", lib, "Sin"))->arg("x") );
166 mod.addFunction( (new BuiltInFn<Sim_Cos<TT>, TT, TT>("cos", lib, "Cos"))->arg("x") );
167 mod.addFunction( (new BuiltInFn<Sim_Tan<TT>, TT, TT>("tan", lib, "Tan"))->arg("x") );
168 }
169
170 template <typename TT>
171 void addFunctionCommonTyped(Module & mod, const ModuleLibrary & lib) {

Callers

nothing calls this directly

Calls 2

addFunctionMethod · 0.45
argMethod · 0.45

Tested by

no test coverage detected