MCPcopy Create free account
hub / github.com/Kitware/VTK / GetMathConstantNumber

Method GetMathConstantNumber

Common/Misc/vtkFunctionParser.cxx:1657–1673  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1655
1656//------------------------------------------------------------------------------
1657int vtkFunctionParser::GetMathConstantNumber(int currentIndex)
1658{
1659 if (strncmp(&this->Function[currentIndex], "iHat", 4) == 0)
1660 {
1661 return VTK_PARSER_IHAT;
1662 }
1663 if (strncmp(&this->Function[currentIndex], "jHat", 4) == 0)
1664 {
1665 return VTK_PARSER_JHAT;
1666 }
1667 if (strncmp(&this->Function[currentIndex], "kHat", 4) == 0)
1668 {
1669 return VTK_PARSER_KHAT;
1670 }
1671
1672 return 0;
1673}
1674
1675//------------------------------------------------------------------------------
1676int vtkFunctionParser::GetMathConstantStringLength(int mathConstantNumber)

Callers 2

FindEndOfMathConstantMethod · 0.95
CheckExpressionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected