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
18StyleTransformer::~StyleTransformer()
19{
20}
21
22
23void
24StyleTransformer::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
38BPoint
39StyleTransformer::Transform(const BPoint& point) const
40{
41	BPoint p(point);
42	Transform(&p);
43	return p;
44}
45