triangle_f.h 623 B

1234567891011121314151617181920
  1. // Copyright (c) 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_GFX_GEOMETRY_TRIANGLE_F_H_
  5. #define UI_GFX_GEOMETRY_TRIANGLE_F_H_
  6. #include "ui/gfx/geometry/geometry_export.h"
  7. #include "ui/gfx/geometry/point_f.h"
  8. namespace gfx {
  9. GEOMETRY_EXPORT bool PointIsInTriangle(const PointF& point,
  10. const PointF& r1,
  11. const PointF& r2,
  12. const PointF& r3);
  13. }
  14. #endif // UI_GFX_GEOMETRY_TRIANGLE_F_H_