/aoo41x/main/basegfx/inc/basegfx/pixel/ |
H A D | bpixel.hxx | 159 if(rOld1 == rOld2) in interpolate() 169 return rOld2; in interpolate() 184 inline BPixel average(const BPixel& rOld1, const BPixel& rOld2) in average() argument 187 …rOld1.getRed() == rOld2.getRed() ? rOld1.getRed() : (sal_uInt8)(((sal_uInt32)rOld1.getRed() + (sal… in average() 188 …rOld1.getGreen() == rOld2.getGreen() ? rOld1.getGreen() : (sal_uInt8)(((sal_uInt32)rOld1.getGreen(… in average() 189 …rOld1.getBlue() == rOld2.getBlue() ? rOld1.getBlue() : (sal_uInt8)(((sal_uInt32)rOld1.getBlue() + … in average() 190 …rOld1.getOpacity() == rOld2.getOpacity() ? rOld1.getOpacity() : (sal_uInt8)(((sal_uInt32)rOld1.get… in average() 196 …etRed() == rOld2.getRed() && rOld2.getRed() == rOld3.getRed()) ? rOld1.getRed() : (sal_uInt8)(((sa… in average() 197 …() == rOld2.getGreen() && rOld2.getGreen() == rOld3.getGreen()) ? rOld1.getGreen() : (sal_uInt8)((… in average() 198 …lue() == rOld2.getBlue() && rOld2.getBlue() == rOld3.getBlue()) ? rOld1.getBlue() : (sal_uInt8)(((… in average() [all …]
|
/aoo41x/main/basegfx/inc/basegfx/point/ |
H A D | b3dhompoint.hxx | 336 return rOld2; in interpolate() 338 else if(rOld1 == rOld2) // this call homogenizes already in interpolate() 345 ((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX(), in interpolate() 346 ((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY(), in interpolate() 351 inline B3DHomPoint average(B3DHomPoint& rOld1, B3DHomPoint& rOld2) in average() argument 354 rOld1.getX() == rOld2.getX() ? rOld1.getX() : (rOld1.getX() + rOld2.getX()) * 0.5, in average() 355 rOld1.getY() == rOld2.getY() ? rOld1.getY() : (rOld1.getY() + rOld2.getY()) * 0.5, in average() 356 rOld1.getY() == rOld2.getY() ? rOld1.getY() : (rOld1.getY() + rOld2.getY()) * 0.5); in average() 362 …(rOld1.getX() == rOld2.getX() && rOld2.getX() == rOld3.getX()) ? rOld1.getX() : (rOld1.getX() + rO… in average() 363 …(rOld1.getY() == rOld2.getY() && rOld2.getY() == rOld3.getY()) ? rOld1.getY() : (rOld1.getY() + rO… in average() [all …]
|
H A D | b2dhompoint.hxx | 294 inline B2DHomPoint interpolate(B2DHomPoint& rOld1, B2DHomPoint& rOld2, double t) in interpolate() argument 302 return rOld2; in interpolate() 304 else if(rOld1 == rOld2) // this call homogenizes already in interpolate() 311 ((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX(), in interpolate() 312 ((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY()); in interpolate() 316 inline B2DHomPoint average(B2DHomPoint& rOld1, B2DHomPoint& rOld2) in average() argument 319 rOld1.getX() == rOld2.getX() ? rOld1.getX() : (rOld1.getX() + rOld2.getX()) * 0.5, in average() 320 rOld1.getY() == rOld2.getY() ? rOld1.getY() : (rOld1.getY() + rOld2.getY()) * 0.5); in average() 323 inline B2DHomPoint average(B2DHomPoint& rOld1, B2DHomPoint& rOld2, B2DHomPoint& rOld3) in average() argument 326 …(rOld1.getX() == rOld2.getX() && rOld2.getX() == rOld3.getX()) ? rOld1.getX() : (rOld1.getX() + rO… in average() [all …]
|
/aoo41x/main/basegfx/inc/basegfx/tuple/ |
H A D | b3i64tuple.hxx | 260 if(rOld1 == rOld2) in interpolate() 270 return rOld2; in interpolate() 275 basegfx::fround64(((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX()), in interpolate() 276 basegfx::fround64(((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY()), in interpolate() 281 inline B3I64Tuple average(const B3I64Tuple& rOld1, const B3I64Tuple& rOld2) in average() argument 284 …rOld1.getX() == rOld2.getX() ? rOld1.getX() : basegfx::fround64((rOld1.getX() + rOld2.getX()) * 0.… in average() 285 …rOld1.getY() == rOld2.getY() ? rOld1.getY() : basegfx::fround64((rOld1.getY() + rOld2.getY()) * 0.… in average() 286 …rOld1.getZ() == rOld2.getZ() ? rOld1.getZ() : basegfx::fround64((rOld1.getZ() + rOld2.getZ()) * 0.… in average() 292 …(rOld1.getX() == rOld2.getX() && rOld2.getX() == rOld3.getX()) ? rOld1.getX() : basegfx::fround64(… in average() 293 …(rOld1.getY() == rOld2.getY() && rOld2.getY() == rOld3.getY()) ? rOld1.getY() : basegfx::fround64(… in average() [all …]
|
H A D | b3ituple.hxx | 260 if(rOld1 == rOld2) in interpolate() 270 return rOld2; in interpolate() 275 basegfx::fround(((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX()), in interpolate() 276 basegfx::fround(((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY()), in interpolate() 281 inline B3ITuple average(const B3ITuple& rOld1, const B3ITuple& rOld2) in average() argument 284 …rOld1.getX() == rOld2.getX() ? rOld1.getX() : basegfx::fround((rOld1.getX() + rOld2.getX()) * 0.5), in average() 285 …rOld1.getY() == rOld2.getY() ? rOld1.getY() : basegfx::fround((rOld1.getY() + rOld2.getY()) * 0.5), in average() 286 …rOld1.getZ() == rOld2.getZ() ? rOld1.getZ() : basegfx::fround((rOld1.getZ() + rOld2.getZ()) * 0.5)… in average() 292 …(rOld1.getX() == rOld2.getX() && rOld2.getX() == rOld3.getX()) ? rOld1.getX() : basegfx::fround((r… in average() 293 …(rOld1.getY() == rOld2.getY() && rOld2.getY() == rOld3.getY()) ? rOld1.getX() : basegfx::fround((r… in average() [all …]
|
H A D | b3dtuple.hxx | 342 if(rOld1 == rOld2) in interpolate() 352 return rOld2; in interpolate() 357 ((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX(), in interpolate() 358 ((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY(), in interpolate() 359 ((rOld2.getZ() - rOld1.getZ()) * t) + rOld1.getZ()); in interpolate() 366 rOld1.getX() == rOld2.getX() ? rOld1.getX() : (rOld1.getX() + rOld2.getX()) * 0.5, in average() 367 rOld1.getY() == rOld2.getY() ? rOld1.getY() : (rOld1.getY() + rOld2.getY()) * 0.5, in average() 368 rOld1.getZ() == rOld2.getZ() ? rOld1.getZ() : (rOld1.getZ() + rOld2.getZ()) * 0.5); in average() 374 …(rOld1.getX() == rOld2.getX() && rOld2.getX() == rOld3.getX()) ? rOld1.getX() : (rOld1.getX() + rO… in average() 375 …(rOld1.getY() == rOld2.getY() && rOld2.getY() == rOld3.getY()) ? rOld1.getY() : (rOld1.getY() + rO… in average() [all …]
|
H A D | b2i64tuple.hxx | 224 inline B2I64Tuple interpolate(const B2I64Tuple& rOld1, const B2I64Tuple& rOld2, double t) in interpolate() argument 226 if(rOld1 == rOld2) in interpolate() 236 return rOld2; in interpolate() 241 basegfx::fround64(((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX()), in interpolate() 242 basegfx::fround64(((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY())); in interpolate() 246 inline B2I64Tuple average(const B2I64Tuple& rOld1, const B2I64Tuple& rOld2) in average() argument 249 …rOld1.getX() == rOld2.getX() ? rOld1.getX() : basegfx::fround64((rOld1.getX() + rOld2.getX()) * 0.… in average() 250 …rOld1.getY() == rOld2.getY() ? rOld1.getY() : basegfx::fround64((rOld1.getY() + rOld2.getY()) * 0.… in average() 253 …inline B2I64Tuple average(const B2I64Tuple& rOld1, const B2I64Tuple& rOld2, const B2I64Tuple& rOld… in average() argument 256 …(rOld1.getX() == rOld2.getX() && rOld2.getX() == rOld3.getX()) ? rOld1.getX() : basegfx::fround64(… in average() [all …]
|
H A D | b2ituple.hxx | 229 inline B2ITuple interpolate(const B2ITuple& rOld1, const B2ITuple& rOld2, double t) in interpolate() argument 231 if(rOld1 == rOld2) in interpolate() 241 return rOld2; in interpolate() 246 basegfx::fround(((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX()), in interpolate() 247 basegfx::fround(((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY())); in interpolate() 251 inline B2ITuple average(const B2ITuple& rOld1, const B2ITuple& rOld2) in average() argument 254 …rOld1.getX() == rOld2.getX() ? rOld1.getX() : basegfx::fround((rOld1.getX() + rOld2.getX()) * 0.5), in average() 255 …rOld1.getY() == rOld2.getY() ? rOld1.getY() : basegfx::fround((rOld1.getY() + rOld2.getY()) * 0.5)… in average() 258 inline B2ITuple average(const B2ITuple& rOld1, const B2ITuple& rOld2, const B2ITuple& rOld3) in average() argument 261 …(rOld1.getX() == rOld2.getX() && rOld2.getX() == rOld3.getX()) ? rOld1.getX() : basegfx::fround((r… in average() [all …]
|
H A D | b2dtuple.hxx | 268 inline B2DTuple interpolate(const B2DTuple& rOld1, const B2DTuple& rOld2, double t) in interpolate() argument 270 if(rOld1 == rOld2) in interpolate() 280 return rOld2; in interpolate() 285 ((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX(), in interpolate() 286 ((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY()); in interpolate() 290 inline B2DTuple average(const B2DTuple& rOld1, const B2DTuple& rOld2) in average() argument 293 rOld1.getX() == rOld2.getX() ? rOld1.getX() : (rOld1.getX() + rOld2.getX()) * 0.5, in average() 294 rOld1.getY() == rOld2.getY() ? rOld1.getY() : (rOld1.getY() + rOld2.getY()) * 0.5); in average() 297 inline B2DTuple average(const B2DTuple& rOld1, const B2DTuple& rOld2, const B2DTuple& rOld3) in average() argument 300 …(rOld1.getX() == rOld2.getX() && rOld2.getX() == rOld3.getX()) ? rOld1.getX() : (rOld1.getX() + rO… in average() [all …]
|
/aoo41x/main/tools/inc/tools/ |
H A D | vector2d.hxx | 61 inline void CalcInBetween(Vector2D& rOld1, Vector2D& rOld2, double t) in CalcInBetween() argument 62 …{ mfX = ((rOld2.mfX - rOld1.mfX) + t) + rOld1.mfX; mfY = ((rOld2.mfY - rOld1.mfY) + t) + rOld1.mfY… in CalcInBetween() 63 inline void CalcMiddle(Vector2D& rOld1, Vector2D& rOld2) in CalcMiddle() argument 64 { mfX = (rOld1.mfX + rOld2.mfX) / 2.0; mfY = (rOld1.mfY + rOld2.mfY) / 2.0; } in CalcMiddle() 65 inline void CalcMiddle(Vector2D& rOld1, Vector2D& rOld2, Vector2D& rOld3) in CalcMiddle() argument 66 …{ mfX = (rOld1.mfX + rOld2.mfX + rOld3.mfX) / 3.0; mfY = (rOld1.mfY + rOld2.mfY + rOld3.mfY) / 3.0… in CalcMiddle()
|
/aoo41x/main/basegfx/source/polygon/ |
H A D | b2dpolypolygontools.cxx | 501 B2DPolyPolygon interpolate(const B2DPolyPolygon& rOld1, const B2DPolyPolygon& rOld2, double t) in interpolate() argument 503 OSL_ENSURE(rOld1.count() == rOld2.count(), "B2DPolyPolygon interpolate: Different geometry (!)"); in interpolate() 508 aRetval.append(interpolate(rOld1.getB2DPolygon(a), rOld2.getB2DPolygon(a), t)); in interpolate()
|
H A D | b2dpolygontools.cxx | 3104 B2DPolygon interpolate(const B2DPolygon& rOld1, const B2DPolygon& rOld2, double t) in interpolate() argument 3106 OSL_ENSURE(rOld1.count() == rOld2.count(), "B2DPolygon interpolate: Different geometry (!)"); in interpolate() 3108 if(fTools::lessOrEqual(t, 0.0) || rOld1 == rOld2) in interpolate() 3114 return rOld2; in interpolate() 3119 const bool bInterpolateVectors(rOld1.areControlPointsUsed() || rOld2.areControlPointsUsed()); in interpolate() 3120 aRetval.setClosed(rOld1.isClosed() && rOld2.isClosed()); in interpolate() 3124 aRetval.append(interpolate(rOld1.getB2DPoint(a), rOld2.getB2DPoint(a), t)); in interpolate() 3128 …aRetval.setPrevControlPoint(a, interpolate(rOld1.getPrevControlPoint(a), rOld2.getPrevControlPoint… in interpolate() 3129 …aRetval.setNextControlPoint(a, interpolate(rOld1.getNextControlPoint(a), rOld2.getNextControlPoint… in interpolate()
|
/aoo41x/main/basegfx/inc/basegfx/polygon/ |
H A D | b2dpolypolygontools.hxx | 202 B2DPolyPolygon interpolate(const B2DPolyPolygon& rOld1, const B2DPolyPolygon& rOld2, double t);
|
H A D | b2dpolygontools.hxx | 432 B2DPolygon interpolate(const B2DPolygon& rOld1, const B2DPolygon& rOld2, double t);
|