I have a Javascript function that isn't returning the result I expected. I am trying to determine if an x,y point exists within a rectangle based on 2 other x,y points. In my code x and y are the original point in question. z1 and z2 are the top...
I'm back for question two on .points. This time wondering how to change the opacity from 0, to 1 and then back within certain pixel distances from the emitter.   var particleCount = 14, particles = new THREE.Geometry(), pMaterial = new THREE.Poin...
I want to get angle between 3 points in JavaScript.    If I have points A(x1,y1), B(x2, y2) and C(x3, y3), I want to get angle that is formed with lines AB and BC.   let A = {x:x1, y:y1}, B = {x:x2, y:y2}, C = {x:x3, y:y3}...
I have been working on JavaScript / JQuery code which allows arrow key movement between input boxes (yes, I am aware this breaks standard UI).  It works by by looping through each element and finding the closest in each direction (left, right, up and...
I'm looking to build a browser multiplayer game using rollback netcode that runs a deterministic simulation on the clients. I prototyped the netcode in Flash already before I ran into the floating point roadblock.   Basically, from what I underst...
I am thinking how to add some marks to an image (I mean something like in google maps - marks for places). I have an image and if the user will clicked to this image, co I want on that place, where user clicked, add some other image. For example, if...
I am loading multiple points from a geojson file and want to delete duplicates which exist in the data (For some features the properties are equal despite the ID). To reach this goal I want to find out if ol.Feature objects are equal to other ol.Feat...
I am working on svg based application. here user can draw different shapes like rect,circle,line etc. I need to convert these shapes into 'path' and then i need all points in the path.   My solution is working fine for all shapes, except '...
I'm drawing points on a map with OpenLayers like in this example: http://dev.openlayers.org/examples/draw-feature.html  Now I want to know, which area (in meters) is covered by such a drawn point. I know, this depends on the zoom level. And this...
I've only found a few solutions searching, and they're either language-specific or too complex. I simply need to get a point n distance from another point rotated n amount. I'm using this for a project in HTML5 canvas. I know that there&#...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.