Method VectorBoxCorner
VectorBoxCorner(Double[], Double[], Double, Boolean)
Return the coordinates of a vector that is the corner of a box (upper right or lower left), assuming a Rectangular coordinate system. Note, this does not apply for points on a sphere or ellipse (although it could be used as an approximation).
Declaration
[Obsolete]
public static double[] VectorBoxCorner(double[] center, double[] result, double distance, bool upperRight)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | center | The center point |
System.Double[] | result | Holds the result, potentially resizing if needed. |
System.Double | distance | The distance from the center to the corner |
System.Boolean | upperRight | If true, return the coords for the upper right corner, else return the lower left. |
Returns
Type | Description |
---|---|
System.Double[] | The point, either the upperLeft or the lower right |