1 /* 2 * Copyright 2023, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 * Zardshard 8 */ 9 10 #include "StyleTransformer.h" 11 12 #include <Point.h> 13 14 15 _USING_ICON_NAMESPACE 16 17 18 StyleTransformer::~StyleTransformer() 19 { 20 } 21 22 23 void 24 StyleTransformer::Transform(BPoint* point) const 25 { 26 if (point) { 27 double x = point->x; 28 double y = point->y; 29 30 Transform(&x, &y); 31 32 point->x = x; 33 point->y = y; 34 } 35 } 36 37 38 BPoint 39 StyleTransformer::Transform(const BPoint& point) const 40 { 41 BPoint p(point); 42 Transform(&p); 43 return p; 44 } 45