2 * Copyright 2006-2008, Haiku.
3 * Distributed under the terms of the MIT License.
6 * Artur Wyszynski <harakash@gmail.com>
11 #include <GradientDiamond.h>
15 BGradientDiamond::BGradientDiamond()
17 fData
.diamond
.cx
= 0.0f
;
18 fData
.diamond
.cy
= 0.0f
;
24 BGradientDiamond::BGradientDiamond(const BPoint
& center
)
26 fData
.diamond
.cx
= center
.x
;
27 fData
.diamond
.cy
= center
.y
;
33 BGradientDiamond::BGradientDiamond(float cx
, float cy
)
35 fData
.diamond
.cx
= cx
;
36 fData
.diamond
.cy
= cy
;
43 BGradientDiamond::Center() const
45 return BPoint(fData
.diamond
.cx
, fData
.diamond
.cy
);
51 BGradientDiamond::SetCenter(const BPoint
& center
)
53 fData
.diamond
.cx
= center
.x
;
54 fData
.diamond
.cy
= center
.y
;
60 BGradientDiamond::SetCenter(float cx
, float cy
)
62 fData
.diamond
.cx
= cx
;
63 fData
.diamond
.cy
= cy
;