Is a X/Y point within a triangle

I have a vector of triangles, I need to pass in an X,Y point and have the method return the triangle that contains the point. Given a triangle and its three points how can I tell if the given point is within the Triangle?
Please help?
I know I could create a shape and call the .contains() but I was hoping not to.

http://mathforum.org/library/drmath/view/54503.html

Similar Messages

  • Diappearing photos replaced by an exclamation point within a triangle.  Prior to loading Lion I could put the image number in finder and locate the original file for that photo.  How do I restore photos now?

    I had problems with photos disappearing and being replaced by an exclamation point within a triangle.  I can see the photo in the thumbnail summary but when you click on it, the screen goes black and the exclamation point within a triangle appears along with the info on the original image number (i.e., img_1120.jpg). Prior to loading Lion, I could go to Finder, enter the image number and locate the original file for that photo.  I could then restore it for editing, copying into Print Shop directly, etc.   That no longer works after installing Lion.   How do I restore photos now?  I have 100s of photos that I have been going back to the original files and restoring and I am frantic that I will no longer be able to get to the original files.  Please help!  Thanks

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    What version of iPhoto? Assuming 09 or later:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • When I click on a picture it appears momentarily then an exclamation point within a triangle appears.

    When I click on a picture it appears momentarily then an exclamation point within a triangle appears in place of the picture. How do I get the picture to show?

    what version of iPhoto?
    This indicates a disconnect between the Thumbnail and the original
    this can be caused by two things
    1 - User action deleting items from inside the iPhoto  library - can be directly - can be from the All images list (never delete from there) - can be from running cleanup software like MacKeeer, CleanMac2  or other dangerous, defective software that improperly deletes or changes things in the iPhoto library - if you have done any of these things you must restore your backup from before you did them and damaged your iPhoto library - and I recommend getting rid of any "clean up software" ASAP (although being essentially MalWear it is not easy)
    2 - corruption of the iPhoto library - If it is not #1 then Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - rebuild your database
    LN

  • I have a battery icon with an exclaimation point within a triangle

    What does it mean?

    HI Timminmd, could you take a picture of the problem and post it that why I have an better idea to help you.

  • Return points within certain distance to each other

    I have a geometry of points (say 1000 points) and I want to return only points within certain distance(say 100 meters) to each other and exclude others. I have been using the sdo_aggr_union with tolerance value of 100, but it returns one of the points from all of which are 100 meters apart and also returns other points.
    I would appreciate if anyone can please help me with this. I basically want to identify bunch of points placed close to each other. sdo_within_distance will not work as this is between two geometries. Here I have the same geometry column in the table but multiple records. Sorry, if I have confused too much.Thanks in advance.

    Hi
    Your initial question said you want to find all points within a certain distance to the each others. The distance was said to be 100 meter.
    Therefor the query will return for every single point all the others that are within that distance.
    As this is performed on one single table the SDO_JOIN is well suited.
    Obviously this returns a lot of recs. Let me explain why. draw for example 5 points (on a line to make it simple) and every point is 10 meters further from the previous. If you want to know for the first point what are the others within the 100 meter distance, you will end up with all the others. So doing this for every point this means that for every point you will have returned all the other, increasing the number of records returned. this is actually what the example query will do.
    If you have additional filters you must add them for both (in your case same) tables, if you want for all points with a specific faceid to list all other points within that distance and with the same faceid.
    However this will not be limited to only 549 recs I expect.
    Maybe you can try to give more explanation what you are trying to achieve.
    Should you try to achieve to identify clusters of points you might want to take a look at spatial clustering http://download.oracle.com/docs/html/B14255_01/sdo_sam_ref.htm#CACJAJDC
    tx
    Luc

  • Points within a forum

    In a couple of the forums that I contribute to, I can see my points within the forum as I am lucky enough to be in the top ten (not for much longer, I suspect, unless I can get a bit more helpful!). In other forums I may have points, but they don't show on the radar. Is there a way to see my points breakdown by forum? And if not, should there be?
    AK

    1. Currently, there isn't, unless you do it the hard way by going through your profile and noting down exactly where you have gotten points. If you need an unique identifier for each post, use the number which you see just after messageID in the post's Reply, Email, or if you're a high enough level, Report this post links.
    2. Yes. Some other people have asked for features similar to this to be implemented, such as being able to view the rating on posts when scanning your My Posts pages, and they appear to be on the list of suggested improvements.
    (13643)

  • Any way to create an anchor point within Summary Links webpart?

    We are using SP 2013 through O365.  I would like to create a bookmark to one of the headers within a Summary Links Webpart.  I searched online and it doesn't look like this can be done but, admittedly, the versions referenced were pre-2013.  So
    I thought I would ask and see if there was some way of doing this.
    Thanks,
    JARED

    Hi JARED,
    I am afraid that there is no way to create an anchor point within Summary Links Web Part. For a workaround, you can go to the your page ->edit the page, under FORMAT TEXT, click Edit source. Then you can customize your bookmark as you want.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Simple count of points within a radius takes too long

    I have reduced my table to just two columns - an ID and a Geography column. I have a spatial index on the latter and a clustered PK index on the former. There are 10m records in the table. The indexes are not fragmented.
    A query to get a count all points within 1000km of a specified point returns around 7.5m but takes 30+ seconds to execute.
    The query plan shows use of the spatial index with cost 9% then clustered index seek on my primary key taking 83%.
    I have tested STDistance and STBuffer - the latter is slightly faster.
    SELECT COUNT(1) FROM testdoserate2 WHERE ([Location].STDistance('POINT (16.373813 48.230391)')) < 1000000
    declare @referencepoint Geography = 'POINT (16.373813 48.230391)'
    declare @radius Geography = @referencepoint.STBuffer(1000000);
    SELECT count(1) FROM testdoserate2 WITH (nolock, INDEX(IDX_Location))
    WHERE Location.Filter(@radius) = 1
    Is there anything else I can possibly do to speed this up?

    Have a look at this thread, especially the info on custom tessellations and the "optimizing point queries" whitepaper:
    https://social.technet.microsoft.com/Forums/sqlserver/en-US/3bbdc511-2a08-4075-b989-d98b70d0bedd/sql-server-express-performance-limitations-with-ogc-methods-on-geometry-instances?forum=sqlspatial
    In addition: If your query returns a lot of rows (or a large count of them) and/or if your query and your spatial index doesn't eliminate most of the candidate rows, you can have perf problems. 1000km radius does sound like it could produce a lot of
    rows, which cause a lot a seeks on the base table in your query plan (capture the *actual* plan and look at the "Clustered Index Seek" iterator right above-right of the "Filter" iterator). 
    Look into tuning the parameters of your spatial index using sp_help_spatial_geography_index. You're looking for largest Percentage/Number_Of_Rows_Selected_By_Primary_Filter and  Pecentage/Number_Of_Rows_Selected_By_Secondary_Filter, which the default
    spatial index parameters don't always give you.
    Hope this helps, Bob

  • How do I link to an anchor point  within a web page from within a PDF

    Hello,
    Can someone tell me how to link to an anchor point on a webpage from within a PDF?
    I created a page in Word and when i add my url with the # to reference the anchor eg. www.google.com/web#test1 and test the link it all works fine. I then create a PDF of this same page however the PDF seems to strip out the URL and looks to reference a file #test1.
    Any suggestions, ideas?
    Thanks

    see this post near the top . . . if you're using framesets you will scroll to the bottom of the page to see what they posted there.
    http://forums.adobe.com/message/628872#628872

  • Using "nested" Mount Points within Mount Points to add additional LUNs to a server

    I realize that this might or might not be common and I haven't read or seen anything about this. So here goes...
    No clustering. Just a strightup adding LUNs to a server mount point.
    I have no issues adding a lun to a mount point (folder on the C-Drive) called MountPoint1. I can build a folder within MountPoint1 and add another LUN to a mountpoint within the first called NestedMountPoint1. I can build another folder within NestedMountPoint1
    and add another LUN to a mountpoint within the second called NestedMountPoint2.
    c:\MountPoiint1 (500GB)
       |-NestedMountPoint1 (300GB)
          |-NestedMountPoint2 (300GB)
    First, do people do this? (Is it a normal practice?) (Recommended?)
    Second, If it is a normal practice, Is there a limit on how many you can nest?
    I can see doing this to add storage to a drive. BUT...

    Hi,
    A mount point is just a logical way to present drives to a system without using drive letters.  You can nest mount points, but it is recommended to use the root (host) volume exclusively for mount points. The root volume is the volume that is hosting
    the mount points. This greatly reduces the time that it takes to restore access to the mounted volumes if you have to run a chkdsk. This also reduces the time that it takes to restore from backup on the host volume.
    For more detailed information, please refer to the articles below:
    How to configure volume mount points on a Microsoft Cluster Server
    http://support.microsoft.com/kb/280297
    Understanding NTFS volume mount points
    https://library.netapp.com/ecmdocs/ECMP1217281/html/GUID-C6537E25-1E71-40F8-A1AF-F0DEED4C865D.html
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Help: SQL to select closest points within groups of records grouped by time

    Hi,
    I need help to find an SQL for efficient solution for the following problem:
    - I have 20 buses circling on one bus route and their locations are reported every 10 seconds and recorded into a spatial table “bus_location” with “bus_loc” as SDO_GEOMETRY type.
    - Each bus location record there has a msg_datetime column with the time when the location was recorded.
    - Buses circle the bus route 8-12 times, from A to B, then from B back to A, then new loop from A to B, and so on.
    - I have 3 timing points in spatial table “timing_point” with “tp_loc” as SDO_GEOMETRY type.
    - A bus will pass each timing point 8-12 times in one direction and 8-12 times in the other direction, while making loops on the bus route.
    My task is: for each timing point, for each bus, for each trip direction (A-B or B-A), find the closest bus location to that timing point.
    Example:
    Bus...*TimingPoint*......*Time*.....*Distance*
    ...........................................*between*
    ...........................................*bus and TP*
    12......A................14:01:00......250 m
    12......A................14:01:10......150 m
    12......A................14:01:20......12 m <== This is the record closest to the TP for this pass
    12......A................14:01:30......48 m
    12......A................14:01:40......100 m
    12......A................14:01:50......248 m
    12......A................14:29:40......122 m
    12......A................14:29:50......72 m
    12......A................14:30:00......9 m <== This is the record closest to the TP for this pass
    12......A................14:30:10......10 m
    12......A................14:30:20......12 m
    I tried to use SDO_NN and I can get closest bus locations, but how to find the closest bus location for each pass? Or how to identify a groups of bus locations which are together within 2-3 minutes and to find closest record for each of these groups of locations?
    Thank you very much for any help.
    Milan
    Edited by: mburazor on 9-Feb-2012 2:41 PM

    Milan,
    Yes, the problem is one of analytics not spatial. Here is another go that should be independent of year/month/date/hour/minute
    as it does all its math based on an absolute number of minutes since 1970. I round to 5 minutes but you could round/trunc to any
    particular interval (5 minutes, 10 minutes, 15 minutes etc)
    Note that I have created extra records in the same table that I built. (Tip: good idea to provide a sample dataset to the forum when
    asking difficult SQL questions like this.)
    drop table buslocns;
    create table buslocns(
    busno number,
    timingpt varchar2(1),
    pttime   timestamp,
    distance number)
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:01:00','YYYY/MM/DD HH24:MI:SS'),250);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:01:10','YYYY/MM/DD HH24:MI:SS'),150);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:01:20','YYYY/MM/DD HH24:MI:SS'),12);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:01:30','YYYY/MM/DD HH24:MI:SS'),48);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:01:40','YYYY/MM/DD HH24:MI:SS'),100);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:01:50','YYYY/MM/DD HH24:MI:SS'),248);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:29:40','YYYY/MM/DD HH24:MI:SS'),122);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:29:50','YYYY/MM/DD HH24:MI:SS'),72);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:30:00','YYYY/MM/DD HH24:MI:SS'),9);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:30:10','YYYY/MM/DD HH24:MI:SS'),10);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:30:20','YYYY/MM/DD HH24:MI:SS'),12);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:59:40','YYYY/MM/DD HH24:MI:SS'),53);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:59:50','YYYY/MM/DD HH24:MI:SS'),28);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 15:00:00','YYYY/MM/DD HH24:MI:SS'),12);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 15:00:10','YYYY/MM/DD HH24:MI:SS'),73);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:44:40','YYYY/MM/DD HH24:MI:SS'),53);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:44:50','YYYY/MM/DD HH24:MI:SS'),28);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 15:45:00','YYYY/MM/DD HH24:MI:SS'),12);
    insert into buslocns values (12,'A',to_timestamp('2012/02/10 15:45:10','YYYY/MM/DD HH24:MI:SS'),73);
    commit;
    with tensOfMinutes as (
    select row_number() over (order by busno,timingpt, pttime) as rid,
           busno,
           timingpt,
           pttime,
           round(((cast(pttime as date) - cast('01-JAN-1970' as date)) * 1440) / 5) * 5 as mins,
           distance
      from BUSLOCNS
    select busno,timingpt,to_char(to_date('01-JAN-1970','DD-MON-YYYY') + ( mins / 1440 ),'DD-MON-YYYY HH24:MI:SS') as pttime,minDist
      from (select busno,timingpt,mins,min(distance) as minDist
              from tensOfMinutes a
             group by a.busno, a.timingpt, a.mins
             order by 1, 2, 3 ) ;
    -- Result
    BUSNO                  TIMINGPT PTTIME               MINDIST
    12                     A        10-FEB-2012 14:00:00 12
    12                     A        10-FEB-2012 14:30:00 9
    12                     A        10-FEB-2012 14:45:00 28
    12                     A        10-FEB-2012 15:00:00 12
    12                     A        10-FEB-2012 15:45:00 12regards
    Simon

  • Video stutters when setting range in and out points within browser

    While playing back video and using the "I" and "O" keys to set range in and out points, the video stutters every time I press either key.
    Footage is Apple ProRes 422 1080p23.98 and 720p59.94 (problem is more noticeable with 59.94 footage). Playback quality is set to "Better Performance"
    FCPX 10.1.3
    OSX 10.9.5
    Mac Pro (Late 2013)
    3 GHz 8-Core
    32GB RAM
    Dual AMD FirePro D700
    Project stored on 7200rpm eSata drive via GbE

    Yes that's exactly right. As I'm going through selecting ranges to mark with a keyword tag, the video pauses for a split second (and skips a few frames) every time I use the "I" or "O" keys. As I tend to tag multiple sections within each clip I like to mark my ranges and tag them on the fly while the clip is still playing.

  • Unordered list not showing up as indented bullet points within Accordian

    http://www.foundationforyoutharts.org/test/Programs.html
    I have a page using the spry accordian, and about five different catagories of information. Some of the copy is in unordered lists (in martial arts catagories), but it shows up as as regular text. Any ideas on how to make it view as a typical unordered list with bullet points and indented?
    Thanks for taking time to look at this.

    Add a margin-left of 20px to your ul.
    Either added it in your stylesheet. or directly on the element:
    <ul style="margin-left:20px">

  • Using band zoom to select all data points within the band

    I'm feeling stupid this morning. I'm a new user with 2011, but haven't figured out how to copy a portion of data. I can use view 2D axis system to view my data. Then I use band zoom to get to the portion I need, but for the life of me I can't get it to copy that portion. I have set flags at the beginning and end and such, but the best I get is the beginning point, a single no value point and the end point. I am not getting all the points in between the flags. Am I supposed to somehow flag all points in the zoom view? I have done a search, but can't figure out what I am doing wrong.
    Robert
    Solved!
    Go to Solution.

    Hello Robert,
    This is a pretty easy and straight forward thing to do:
    Put you data into the VIEW window. Then pick the BAND cursor in the toolbar (see below)
    Select the "Set Flags" icon in the VIEW windows with the data and the Band Cursor:
    After you have the data selected with the FLAGS (the data points will be displayed in a thicker line style) click on the "Copy Data Points" icon:
    You will get a full copy of the data in the band, copied to a  new channel in the Data Portal. In the example below I dragged the new data into both windows (not that the red data is still highlited by the flags, this it's a thicker line style).
    That should answer your question, please let me know if you have additional questions,
         Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • Inserting bullet points within Interactive adobe forms

    Hi,
         I would like to know if it would be possible to include "Bullets & Numbering" within Interactive adobe forms similar to MS word. Please kindly let me know.
    thanks
    anantharam

    Hi Anantharam,
    If you want to place bullets that will remain static, say U need to put certain notes on the form using the bullets preceding them,
    Yes this can be done, but a little tricky, just write the stuff in a word document with bullets, just copy and paste it into your Interactive form..this is the thing i had also implemented in my case, solved my problem..
    but in case u need to add this somewhere which is a runtime specific thing, i haven't yet tried such thing.
    Hope this helps.
    Regards
    Amita

Maybe you are looking for