The Angle property allows the vector to be used as a 2D angle. The Axis Index controls which 2 axis of the vector are used. Use the Angle property to get the angle represented by the Axis pair values in the RSVector.TRSVector.X, RSVector.TRSVector.Y, and/or RSVector.TRSVector.Z properties. When the Angle property is set, it modifies the axis pair so that it equals the angle given. However, it should attempt to preserve the RSVector.TRSVector.Magnitude of the vector.
The Angle property gets and sets the angle of the vector in degrees. Use the
AngleInRad property to get and set the angle of the vector in radians.
The following code creates a vector and sets its XY values to equal 45 degrees: