Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/boost/polygon/transform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ class axis_transformation {
explicit axis_transformation(ATR atr) : atr_(atr) {}
axis_transformation(const axis_transformation& atr) : atr_(atr.atr_) {}

explicit axis_transformation(const orientation_2d& orient) {
explicit axis_transformation(const orientation_2d& orient) : atr_(NULL_TRANSFORM) {
const ATR tmp[2] = {
NORTH_EAST, // sort x, then y
EAST_NORTH // sort y, then x
};
atr_ = tmp[orient.to_int()];
}

explicit axis_transformation(const direction_2d& dir) {
explicit axis_transformation(const direction_2d& dir) : atr_(NULL_TRANSFORM) {
const ATR tmp[4] = {
SOUTH_EAST, // sort x, then y
NORTH_EAST, // sort x, then y
Expand Down