/* === S Y N F I G ========================================================= */
/*! \file valuenode_atan2.cpp
-** \brief Template File
+** \brief Implementation of the "aTan2" valuenode conversion.
**
** $Id$
**
set_link("y",ValueNode_Const::create(Angle::sin(value.get(Angle())).get()));
break;
default:
- throw Exception::BadType(ValueBase::type_name(value.get_type()));
+ throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
}
DCAST_HACK_ENABLE();
bool
ValueNode_Atan2::set_link_vfunc(int i,ValueNode::Handle x)
{
- assert(i==0 || i==1);
+ assert(i>=0 && i<link_count());
+
if(i==0)
{
x_=x;
ValueNode::LooseHandle
ValueNode_Atan2::get_link_vfunc(int i)const
{
- assert(i==0 || i==1);
+ assert(i>=0 && i<link_count());
+
if(i==0)
return x_;
if(i==1)
String
ValueNode_Atan2::link_name(int i)const
{
- assert(i==0 || i==1);
+ assert(i>=0 && i<link_count());
+
if(i==0)
return "x";
if(i==1)
String
ValueNode_Atan2::link_local_name(int i)const
{
- assert(i==0 || i==1);
+ assert(i>=0 && i<link_count());
+
if(i==0)
return _("X");
if(i==1)