Exemple #1
0
Angle Angle::operator/(const Angle &right) const
{
	double val = right.as(m_unit);
	if(Math::isZero(val))
	{
		throw arkhe::base::Exception("division by zero");
	}
	return Angle(m_angle / val,m_unit);
}
void
CircleNodeEditor::setBearing( const Angle& bearing )
{
    _bearing = bearing.as(Units::RADIANS);
    updateDraggers();
}
Exemple #3
0
Angle Angle::operator*(const Angle &right) const
{
	return Angle(m_angle * right.as(m_unit),m_unit);
}
Exemple #4
0
bool Angle::operator>=(const Angle &right) const
{
	return m_angle >= right.as(m_unit);
}
Exemple #5
0
bool Angle::operator!=(const Angle &right) const
{
	return !Math::equal(m_angle,right.as(m_unit));
}