ValueNode_Atan2::ValueNode_Atan2(const ValueBase &value):
LinkableValueNode(value.get_type())
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
switch(value.get_type())
{
case ValueBase::TYPE_ANGLE:
throw Exception::BadLinkName(name);
}
+
+LinkableValueNode::Vocab
+ValueNode_Atan2::get_children_vocab_vfunc()const
+{
+ LinkableValueNode::Vocab ret;
+
+ ret.push_back(ParamDesc(ValueBase(),"x")
+ .set_local_name(_("X"))
+ .set_description(_("Cosine of the angle"))
+ );
+
+ ret.push_back(ParamDesc(ValueBase(),"y")
+ .set_local_name(_("Y"))
+ .set_description(_("Sine of the angle"))
+ );
+
+ return ret;
+}