aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pathops/SkPathOpsTriangle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pathops/SkPathOpsTriangle.h')
-rw-r--r--src/pathops/SkPathOpsTriangle.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/pathops/SkPathOpsTriangle.h b/src/pathops/SkPathOpsTriangle.h
new file mode 100644
index 0000000000..cbeea8cc76
--- /dev/null
+++ b/src/pathops/SkPathOpsTriangle.h
@@ -0,0 +1,20 @@
+/*
+ * Copyright 2012 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkPathOpsTriangle_DEFINED
+#define SkPathOpsTriangle_DEFINED
+
+#include "SkPathOpsPoint.h"
+
+struct SkDTriangle {
+ SkDPoint fPts[3];
+
+ bool contains(const SkDPoint& pt) const;
+
+};
+
+#endif