Top "2d" questions

2D computer graphics is the computer-based generation of digital images—mostly from two-dimensional models.

Declare an empty two-dimensional array in Javascript?

I want to create a two dimensional array in Javascript where I'm going to store coordinates (x,y). I don't …

javascript arrays dynamic 2d push
Most efficient way to find mode in numpy array

I have a 2D array containing integers (both positive or negative). Each row represents the values over time for a …

python numpy 2d mode
Calculating a 2D Vector's Cross Product

From wikipedia: the cross product is a binary operation on two vectors in a three-dimensional Euclidean space that results in …

language-agnostic math vector 2d
2D cross-platform game engine for Android and iOS?

I've worked for some time with Unity3d and found it's 2D part with OnGUI() or GUITextures too clumsy. Also, …

android ios 2d game-engine marmalade
Drawing Isometric game worlds

What is the correct way to draw isometric tiles in a 2D game? I've read references (such as this one) …

2d isometric
A simple algorithm for polygon intersection

I'm looking for a very simple algorithm for computing the polygon intersection/clipping. That is, given polygons P, Q, I …

math geometry 2d polygon
Difference between SurfaceView and View?

When is it necessary, or better to use a SurfaceView instead of a View?

android graphics 2d
Convert latitude/longitude point to a pixels (x,y) on mercator projection

I'm trying to convert a lat/long point into a 2d point so that I can display it on an …

java math maps 2d mercator
2D Cross-Platform Game Development Engines

I've worked for some time with Corona SDK and love how fast and easy I can create powerful apps using …

windows mobile cross-platform 2d game-engine
How do I calculate the area of a 2d polygon?

Assuming a series of points in 2d space that do not self-intersect, what is an efficient method of determining the …

algorithm geometry 2d