Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Help with triangles!

kovikovi Member Posts: 7
Hi!

Maybe this is a silly question, but I need some help.
I have 3 points (TPoint), which determine a triangle. I want to know weather a fourth point is IN the triangle!

Thanks

Comments

  • pritaeaspritaeas Member Posts: 274
    : Maybe this is a silly question, but I need some help.
    : I have 3 points (TPoint), which determine a triangle. I want to know weather a fourth point is IN the triangle!

    The method I use is creating a region from your 3 triangle points using CreatePolygonRgn(). For determining if the 4th point is in the region (triangle), use PtInRegion().

    hth, pritaeas
  • Shawn CarterShawn Carter Member Posts: 0

    _________ < http://forcoder.org /> free ebooks and video tutorials about ( C++ R Python JavaScript Delphi MATLAB Go Visual Basic .NET Swift Perl Assembly C# C Objective-C Ruby PHP PL/SQL Java Visual Basic Scratch Apex Transact-SQL Hack Dart Logo Prolog VBScript ML Kotlin Lisp Scala Alice Ada SAS Clojure Scheme Lua Crystal FoxPro Bash ABAP Erlang COBOL LabVIEW Awk Fortran D Rust F# Julia ) _________

Sign In or Register to comment.