| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2005 Nokia. All rights reserved. | 3 * Copyright (C) 2005 Nokia. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #if OS(MACOSX) | 35 #if OS(MACOSX) |
| 36 typedef struct CGPoint CGPoint; | 36 typedef struct CGPoint CGPoint; |
| 37 | 37 |
| 38 #ifdef __OBJC__ | 38 #ifdef __OBJC__ |
| 39 #import <Foundation/Foundation.h> | 39 #import <Foundation/Foundation.h> |
| 40 #endif | 40 #endif |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 struct SkPoint; | 43 struct SkPoint; |
| 44 | 44 |
| 45 namespace WebCore { | 45 namespace blink { |
| 46 | 46 |
| 47 class IntPoint; | 47 class IntPoint; |
| 48 class IntSize; | 48 class IntSize; |
| 49 class LayoutPoint; | 49 class LayoutPoint; |
| 50 class LayoutSize; | 50 class LayoutSize; |
| 51 | 51 |
| 52 class PLATFORM_EXPORT FloatPoint { | 52 class PLATFORM_EXPORT FloatPoint { |
| 53 public: | 53 public: |
| 54 FloatPoint() : m_x(0), m_y(0) { } | 54 FloatPoint() : m_x(0), m_y(0) { } |
| 55 FloatPoint(float x, float y) : m_x(x), m_y(y) { } | 55 FloatPoint(float x, float y) : m_x(x), m_y(y) { } |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 } | 239 } |
| 240 | 240 |
| 241 PLATFORM_EXPORT float findSlope(const FloatPoint& p1, const FloatPoint& p2, floa
t& c); | 241 PLATFORM_EXPORT float findSlope(const FloatPoint& p1, const FloatPoint& p2, floa
t& c); |
| 242 | 242 |
| 243 // Find point where lines through the two pairs of points intersect. Returns fal
se if the lines don't intersect. | 243 // Find point where lines through the two pairs of points intersect. Returns fal
se if the lines don't intersect. |
| 244 PLATFORM_EXPORT bool findIntersection(const FloatPoint& p1, const FloatPoint& p2
, const FloatPoint& d1, const FloatPoint& d2, FloatPoint& intersection); | 244 PLATFORM_EXPORT bool findIntersection(const FloatPoint& p1, const FloatPoint& p2
, const FloatPoint& d1, const FloatPoint& d2, FloatPoint& intersection); |
| 245 | 245 |
| 246 } | 246 } |
| 247 | 247 |
| 248 #endif | 248 #endif |
| OLD | NEW |