Click or drag to resize
Vector Properties

The Vector type exposes the following members.

Properties
  NameDescription
Public propertyDirection

Returns the direction of the vector in Radians with 0 facing East up to 2pi.

Public propertyMagnitude

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%.

Public propertyPoint

Returns the x,y coordinate pair in the form of a System.Drawing.Point

Public propertyTrueMagnitude

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.

Public propertyX

Used to retrieve the X component of the vector.

Public propertyY

Used to retrieve the Y component of the vector.

Top
See Also