Answer the question
In order to leave comments, you need to log in
How to find points in 3D space?
There is a point in space, let its coordinates be A(0, 0, 0
). And if we imagine that the point А
is the center of the cube, then I would need to find four points that would be the centers of the four sides. Tell me, or rather show me how to find two of them. And it turns out that I am given angles, these are 0
degrees 90
and the length of a length
segment originating at a point is given А
.
Answer the question
In order to leave comments, you need to log in
With your attitude towards the answerers, any desire to answer disappears, so I will answer vaguely ...
There is something to read, if two angles are known ... then a little linear algebra to find a point at a certain distance ... I would solve this problem exactly like this.
Well, if A(0,0,0) is the center, then the center of one face will be A(len,0,0). The other one - A(-len, 0 , 0) - is the opposite face. I think you will find others.
Then apply a rotation transformation about the center, and offset the center, if necessary.
Rotation and translation matrices - google it yourself, it's easy.
The coordinates of the cube's vertices in space are all possible three-digit numbers in the binary system.
Take this number. For example 0b000
is a point with coordinates (-l/2,-l/2,-l/2)
затем число 0b001 (-l/2,-l/2,+l/2)
затем число 0b010 (-l/2,+l/2,-l/2)
затем число 0b011 (-l/2,+l/2,+l/2)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question