I am an engineer not a mathematician. So, please accept my apology if this is a very simple problem for this site.
Given a coordinate $A(x_{1A},x_{2A},...,x_{nA})$ and a value d in n-dimension space. I would like to find farthest points to this centroid point $A$. So, a n-dimension hypercube should be built. I start from 2-dimension and then try to generalize the method to n-dimension
2-dimensional space:
Given a coordinate $A(x,y)$ and $d$. What is interested is to find $B(x_1,y_1)$ and $C(x_2,y_2)$ as farthest points from $A(x,y)$.
it is a easy task as they, $B$ and $C$, can be calculated as $$B(x_1,y_1)=A(x+d,y+d)$$ and $$C(x_2,y_2)=A(x-d,y-d)$$
It is worth to mention that we have to calculate coordinates of all vertices and then by using a distance measurement like Euclidean distance find which ones are farthest.
Now in 3-dimensional space:
Given the same point in 3-dimension space, i.e. $A(x,y,z)$ and we have,
So,
$$B(x_1,y_1,z_1)=A(x+d,y+d,z+d)$$ and $$C(x_2,y_2,z_2)=A(x-d,y-d,z-d)$$
and for 3-dimension space, is it correct to generalize it as following algorithm:
1- build a 3-face cube around point $A$ with $d$ distance from all faces.
2- find coordinates of all 8 vertices
3- find farthest two top points by using a distance measurement.
Generalized coordinates to the n-dimension are for antipodal points: $$B(x_{1B},x_{2B},...,x_{nB})=A(x_{1A}+d,x_{2A}+d,...,x_{nA}+d)$$ and $$C(x_{1C},x_{2C},...,x_{nC})=A(x_{1A}-d,x_{2A}-d,...,x_{nA}-d)$$
what I think is: 1- the method seems to be something like move from dimension $n$ to $n-1$. In other words, when I subtract $d$ from third dimension, i.e. $z$, I try to shift my point from midpoint of a cube to a 2-d rectangle. 2- all the vertices can be consider as a farthest point from $A$ as $A$ is the centroid and it has identical distance to all vertices. 3- I do not think that I can generalize the method by simply subtract or add $d$ from coordinates of $A$. 4- I found some pages in stackexchange like 1, 2, 3 and 4 but I cannot find the solution for what I am looking for.
How can I find those two farthest points.
Any help would be appreciated.