Added operator for division of two sf::Time objects
This commit is contained in:
parent
5f4257187e
commit
6cf30e1751
2 changed files with 19 additions and 0 deletions
|
@ -237,6 +237,13 @@ Time& operator /=(Time& left, Int64 right)
|
|||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
float operator /(Time left, Time right)
|
||||
{
|
||||
return left.asSeconds() / right.asSeconds();
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
Time operator %(Time left, Time right)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue