Vector Properties |
The Vector type exposes the following members.
Name | Description | |
---|---|---|
![]() | Direction | Returns the direction of the vector in Radians with 0 facing East up to 2pi. |
![]() | Magnitude | Used to compute the magnitude of the vector with respect to the origin. Returns a very fast approximate magnitude using a Taylor function accurate to within 10%. |
![]() | Point | Returns the x,y coordinate pair in the form of a System.Drawing.Point |
![]() | TrueMagnitude | Used to compute the real magnitude of the vector with respect to the origin. Returns a very accurate magnitude result. However, this function tends to run much slower than an approximation. For this reason the Terrarium uses the Magnitude property internally. |
![]() | X | Used to retrieve the X component of the vector. |
![]() | Y | Used to retrieve the Y component of the vector. |