Don't use this tag. If you have questions about cartesian products (e.g. SQL, Spark, Datatables, heterogeneous tuples), use `cartesian-product` tag. If you have questions about planar geometry / 3D-graphics, use `cartesian-coordinates` tag.
Questions tagged [cartesian]
245 questions
1
vote
1 answer
Doubts in converting spherical coordinates
I'm trying to convert spherical coordinates (namely latitude and longitude from a GPS device) into Cartesian coordinates. I'm following this simple conversion derived from the polar coordinates conversion equations.
Then I'm calculating the distance…

rano
- 5,616
- 4
- 40
- 66
1
vote
1 answer
Join on DataFrames creating CartesianProduct in Physical Plan on Spark 1.5.2
I am running into performance issue when joining data frames created from avro files using spark-avro library.
The data frames are created from 120K avro files and the total size is around 1.5 TB.
The two data frames are very huge with billions of…

Prasad R.
- 63
- 1
- 10
1
vote
1 answer
IDL: Can I get the coordinates of a point on my plot's cartesian plane?
I have a plot like this:
https://i.stack.imgur.com/zdike.png
I need the data coordinates of points in order to plot wind barbs.
Now, if I wanted a wind barb to be drawn at x=100, y=20, is there a way I can obtain the data coordinates of that ( or…

Carthage
- 87
- 1
- 7
1
vote
2 answers
how do I convert from one cartesian system to another
2D problem: I measure the position of the 3 ends of a triangle in a cartesian system. Now i move the system (triangle) to another cartesian system and measure the position of just two ends.
How can I identify the location of the 3rd end based on…

Jon
- 13
- 3
1
vote
1 answer
Polar and Cartesian calculations not completely working?
double testx, testy, testdeg, testrad, endx, endy;
testx = 1;
testy = 1;
testdeg = atan2( testx, testy) / Math::PI* 180;
testrad = sqrt(pow(testx,2) + pow(testy,2));
endx = testrad * cos(testdeg);
endy = testrad * sin(testdeg);
All parts of this…

Smoka
- 71
- 5
1
vote
1 answer
Transforming the cartesian representation of a segment into polar form and viceversa
Suppose to have a segment described by its two extremes on cartesian plane, as two couples of coordinates.
I need to represent such segment in "polar form", as a couple theta, d, where theta is its slope and d its distance from origin of cartesian…

ubisum
- 179
- 3
- 12
1
vote
2 answers
N-Ary/Multiple-List Cartesian Product
in Product SKUs,
we can get Cartesian Product in the way of LINQ:
string[] arr1 = new[] {"red", "blue", "orange"};
string[] arr2 = new[] {"5 inche", "8 inch"};
var result = from a in arr1
from b in arr2
select a + " " +…

darrenji
- 75
- 1
- 5
1
vote
1 answer
2d to Isometric formula
tileWidth is 64 and tileHeight is 32.
This is my map array:
var map:Array=
[
[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2],
[2,3,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2],
…

user4179189
- 13
- 1
- 3
1
vote
1 answer
Julia: create specific index variables in Base.Cartesian
I am using Base.Cartesian for the first time and have found it to be very powerful. However, it seems to generate code which uses all available indeces, whereas I have a case where I would like to only use a few.
In short
If I am inside @nloops but…

Mageek
- 4,691
- 3
- 26
- 42
1
vote
2 answers
How to generate Cartesian Coordinate (x,y) from GridBaglayout?
My question related to previous post
How to fill color in grid boxes randomly
How can I get Cartesian Coordinate (x,y) of each of the boxes filled by color in Gridbaglayout. For example, if the size of the panel is 300 x 300, and the row and column…

Jessy
- 15,321
- 31
- 83
- 100
1
vote
2 answers
How to find variability of a set of Cartesian Points (xyz) or fitting/distance to 3D line and/or plane?
So I was looking at this question:
Matlab - Standard Deviation of Cartesian Points
Which basically answers my question, except the problem is I have xyz, not xy. So I don't think Ax=b would work in this case.
I have, say, 10 Cartesian points, and…

Smiley
- 75
- 1
- 11
1
vote
1 answer
3D point position from 2D projection
I am currently searching for a way to reconstruct a set of 3D lines from a 2D projection.
I have an image of a projection of 3 coordinate system axes, camera parameters etc are known.
The position of the 2D points is given, also it is known that the…

taalas
- 395
- 3
- 16
1
vote
3 answers
cartesian slope calculation error Java
I'm having some trouble with the my cartesian slope calculations in Java.
So my sourcecode lets you input 4 numbers, x1 y1 x2 y2, which represent 2 coordinates of 2 points in an cartesian coordinate system.
then i calculate the slope by calculating…

SteelDevil
- 29
- 8
1
vote
1 answer
RMSE of (x,y) coordinates
I have a data set of coordinates (X,Y) values in the Cartesian plane and I would like to find the RMSE of these points to 1 coordinate (x1,y1). So basically, (X,Y) are around (x1,y1) and I would like to find their RMSE.
Could anyone help me because…

user2220824
- 11
- 1
- 4
1
vote
1 answer
Convert Cartesian point to point on rotated plane (pic)
I have a cartesian point that I am being given (blue line), and I need to convert it to a point relative to a rotated plane (green box). The plane is rotated at 28.227º as shown below.
Sadly, my lack of math education has me completely baffled as to…

Adam Meyer
- 1,505
- 1
- 19
- 28