S
S
Sergey Brovko2018-03-13 18:44:26
css
Sergey Brovko, 2018-03-13 18:44:26

How to draw a box given the coordinates of opposite corners?

Hello, there are coordinates like 41/50/151 and 74/83/186 where the first is one of the lower corners, and the second is the upper corner diagonally opposite the first. How can a box be drawn from this using css/html5/canvas([at least something)?
slide-6.jpg
If you look at the picture, then for example point A is the first coordinate, point K is the second.
Thank you in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
twobomb, 2018-03-13
@cyber01

Well, as an option , you can use the Three.js library

A
Andrey Shatokhin, 2018-03-13
@Sovigod

No way. This data is not enough.
But it is possible to draw if we assume that its faces are parallel to the coordinate axes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question