0 Members and 2 Guests are viewing this topic.
sf::Angle encapsulates an angle value in a flexible way.It allows for defining an angle value either as a numberof degrees or radians. It also works the other wayaround. You can read an angle value as either a numberof degrees or radians.By using such a flexible interface, the API doesn'timpose any fixed type or unit for angle values and letsthe user choose their own preferred representation.Angle values support the usual mathematical operations.You can add or subtract two angles, multiply or dividean angle by a number, compare two angles, etc.