Exemplo n.º 1
0
SCoord SCoord::operator/(int const other) const
{
    return SCoord(phi / static_cast<qreal>(other),
                  theta / static_cast<qreal>(other));
}
Exemplo n.º 2
0
SCoord SCoord::operator/(SCoord const& other) const
{
    return SCoord(phi / other.phi, theta / other.theta);
}
Exemplo n.º 3
0
SCoord SCoord::operator-(SCoord const& other) const
{
    return SCoord(phi - other.phi, theta - other.theta);
}
Exemplo n.º 4
0
SCoord SCoord::operator*(SCoord const& other) const
{
    return SCoord(phi * other.phi, theta * other.theta);
}
Exemplo n.º 5
0
SCoord SCoord::operator+(SCoord const& other) const
{
    return SCoord(phi + other.phi, theta + other.theta);
}