commit | 45a8fc6a8b00451f807783f2a6ec640e9bcc7256 | [log] [tgz] |
---|---|---|
author | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Feb 14 15:29:11 2013 +0000 |
committer | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Feb 14 15:29:11 2013 +0000 |
tree | bf483ee177b764a83768534293b9542a5a0c036e | |
parent | 3976825a21532e254311b90b4a9046e25717e335 [diff] [blame] |
shape ops work in progress git-svn-id: http://skia.googlecode.com/svn/trunk@7738 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/Intersection/LineUtilities.cpp b/experimental/Intersection/LineUtilities.cpp index 6e3b966..186fa9b 100644 --- a/experimental/Intersection/LineUtilities.cpp +++ b/experimental/Intersection/LineUtilities.cpp
@@ -125,3 +125,9 @@ y = one_t * line[0].y + t * line[1].y; } } + +_Point xy_at_t(const _Line& line, double t) { + double one_t = 1 - t; + _Point result = { one_t * line[0].x + t * line[1].x, one_t * line[0].y + t * line[1].y }; + return result; +}