Questions tagged [hit]

Health information technology (HIT) is information technology applied to health care. It provides the umbrella framework to describe the comprehensive management of health information across computerized systems and its secure exchange between consumers, providers, government and quality entities, and insurers.

91 questions
0
votes
0 answers

A robust "hit test" for polygons

We have a set of polygons, and a point we can assume is in one of the polygons. I'd need a solid algorithm that tells me which of the polygon the point is in. I've tried some things, but the floating point precision was a problem at the edges, and i…
tuccio
  • 333
  • 3
  • 10
0
votes
1 answer

IOS5 GLKit GLView and Hit testing

In the new GLKit GLView reference, there is this warning that is emphasized: Important: Your drawing method should only modify the contents of the framebuffer object. Never attempt to read the pixel information from the underlying framebuffer…
0
votes
1 answer

In polygon test, hit test, is a point in a polygon? method

I have created a method called isInPoly that receives the x and y coordinates of 2 lines (so 8 coordinates) and determines where the 2 lines intersect. I know I should have called the method something like intersectLocation or something, but the…
user908759
  • 1,355
  • 8
  • 26
  • 48
0
votes
1 answer

CorePlot plot hit testing

I have a question about CorePlot. My question is: I've drawn a curve. Next task is: curve selection. I've added the handler: But that does not work. Any ideas? Thanks. - (BOOL)npvCurveContainPoint:(CGPoint)point { if ([[graph allPlots] count] ==…
Dmitry
  • 1
0
votes
1 answer

Phaser Hit boxes are invisibly to the right, what gives?

I'm working on a game where the player can interact with stuff around them, like npcs, items, and examinable things in the environment. They can interact with stuff in 2 ways, pressing T to examine or talk to it or R to use or pick it up. For some…
EmptyStone
  • 235
  • 1
  • 7
0
votes
0 answers

how do I make my javascript program to ask user to hit any key to exit?

I'm new to javascript and I need help. I'm currently doing a project using javascript in which I'm tasked with creating some code which asks the user to hit any key to exit the javascript program. does anybody know how I can do this? I've tried …
0
votes
2 answers

Get the index of the first element in an array that meets the specified condition

For example, I have an array data = 0 0 0 0 0 0 1 1 1. I want to get the index of the first non-zero element in the array.
winnie
  • 183
  • 1
  • 6
0
votes
1 answer

Create a new value output if the values of another column do not match

I am working with some complicated patient health data and would like to simplify categorizing the types of insurance patients use. However, some patients use multiple insurance types to pay for a medical visit (ie Medicare and supplemental…
c_hornung
  • 17
  • 5
0
votes
1 answer

not able to use hit detection while using pygame and tkinter together

So I'm making a code where there are a bunch of circles that are going across the screen. When it hits the edge of the screen they have to bounce back and go in the opposite direction. Although it's not working in the sense that I just get a blank…
Ravishankar D
  • 131
  • 10
0
votes
1 answer

How to add a click event on amchart NavigationBar?

I want to add a click event when I click some link in Amchart Navigation Bar, my code: chart.navigationBar = new am4charts.NavigationBar(); chart.navigationBar.events.on('hit', (ev) => { console.log(ev); }); I just don't know how to get the…
Ying
  • 11
  • 2
0
votes
1 answer

How select hits composed entirely of Compton scattering events?

I have a simple geometry consisting of a thin silicon plate (my sensitive detector) in which I fire a collimated beam of 511 keV photons at it. I want to select just those photons that have Compton scattered once with the sensitive detector. I…
0
votes
0 answers

'Old fashioned' hit counter

I can't even believe I'm asking this but I've recently moved a client over from their old website platform, circa 2011 which had their blog on blogger - one of the features being a hit counter of pageviews or visits. Everything is now on wordpress,…
squidgy87
  • 11
  • 1
0
votes
0 answers

Regular expression to limit the character found to 2 or 3 not more

I am looking for a regex that only takes out 2 or 3 characters. If there are more chars there should not be a match. See uploaded picture: I already tried: /^[A-Z]{2,3}$/ (\b[A-Z]{2,3})
0
votes
1 answer

How to understand when a activerecord query is executed?

I'm facing difficulty in understanding when do we hit the db in rails active record and when exactly are we building query. users = User.where(org_id: 15) #db hit 1? Is this going to hit db ? users.where(is_suspended: false) #db hit 2? Use full…
vikas95prasad
  • 1,234
  • 1
  • 12
  • 37
0
votes
1 answer

Hit detection in flash as3

Hi i have a snake game that uses a timer to incremement the snakes size, and ive been trying to figure out hit detection on it. and have got to this stage for (var i = 1; i < snake.length; i++){ //this is where I am trying to make the hit …
DIM3NSION
  • 1,681
  • 5
  • 20
  • 38