Questions tagged [cartesian]

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.

245 questions
1
vote
2 answers

Idenfitying all points at which gridlines are crossed by a straight line in a 3d cartesian graph

I'm using PHP and have generated a 3D cartesian coordinate system (x,y,z). I want to travel a straight line between two points. I call each 1x1x1 square a sector identified by the adjacent lattice point closest to the origin. I'm trying to…
MythX
  • 11
  • 2
1
vote
1 answer

Calculate offset coordinate in a cartesian space

if I have 2 coordinate pointA(x,y) and pointB(x,y) I need to calculate the offset coordinate at specific distance and angle 90 deg and 270 deg. How can I? Can't find the right formula. How to get the coordinate of C,D,E,F?
Damiano Miazzi
  • 1,514
  • 1
  • 16
  • 38
1
vote
1 answer

How can I see the cartesian plane on the interface builder?

Is there a way to see the cartesian plane on the Interface Builder? I don't know how to figure out the exact coordinates to draw, for example a NSImage, can you guys teach me how to locate myself on with/without a graphical environment.
joaopenteado
  • 118
  • 1
  • 2
  • 14
1
vote
0 answers

finding unknown 4th point in arbitrary space programmatically

Problem: I know the x and y of three arbitrary points on a 2d plane. I know the vague distance from each point to the unknown, though I don't know the x y components. I want to find the position of the 4th point. The data is stored in a list >3 of…
1
vote
2 answers

Math for counting the difference of concentric rectangles

I have 2 rectangles, one which is basically the other scaled up, like so I'd like to see if a set of xy coords falls within the XOR difference, ie What's the best math to do this? Difference (XOR) between two rectangles, as rectangles? does kind…
jamesson
  • 317
  • 3
  • 18
1
vote
2 answers

Cesium Cartesian3 move vertically up

I want to move a Cartesian3 position vertically up by x amount of units (e.g., meters). I DON'T want to convert it to Cartographic, add x to the altitude and covert back to Cartesian3. What would be the best way (performance-wise) to do this…
Ugnius Malūkas
  • 2,649
  • 7
  • 29
  • 42
1
vote
2 answers

Cartesian product by pattern matching

I'm a student at the university and am learning Scala. I've got an exercise which is to make cartesian product using pattern matching and not using any operations on list. def find[A,B](aList: List[A], bList: List[B]): Set[(A,B)] = { def…
squall
  • 139
  • 5
1
vote
1 answer

Viewing points on a sphere from an external perspective

I have an application that generates points on edge of a sphere. They're recorded as Lat/Lon coordinates in degrees or radians (example is degrees). I am unable to figure out how to display them on a cartesian plane as viewed from a point external…
Mark Taylor
  • 1,128
  • 8
  • 15
1
vote
1 answer

Join leads to cartesian

I have two DT's. I want to join DT1 with DT2 based on a column and take a column from DT2. DT1: id place 1: id1 A 2: id2 B 3: id3 B 4: id4 C 5: id5 C DT2: place rank 1: A 3 2: B …
leoOrion
  • 1,833
  • 2
  • 26
  • 52
1
vote
1 answer

Astropy: Add Alt & Az to a coordinate object (Skycoord)

I have 2 Astropy tables containing Alt/Az coordinates calculated for my local horizon. The Alt & Az are in 2 separate columns. I want to do something similar to 'match_to_catalog_sky' to look for matches across the 2 tables but this requires a…
1
vote
1 answer

How to configure linear labels in Time Cartesian Chartjs?

I need to show labels on the x-axis every 2 hours (0h, 2h, 4h...). What am I missing?