MCPcopy Create free account
hub / github.com/GilesBathgate/RapCAD / SignFunction

Method SignFunction

src/function/signfunction.cpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include "rmath.h"
23
24SignFunction::SignFunction() : Function("sign")
25{
26 addDescription(tr("Returns a number value of -1 or 1 depending on the sign of the given number value."));
27 addParameter("value");
28}
29
30Value& SignFunction::evaluate(const Context& ctx) const
31{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected