Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCommon > RSVector > Classes > TRSVector > Properties

TRSVector.AngleInRad[T2DAxis] Property

Scroll Prev Top Next More

The AngleInRad property allows the vector interface to be used as a 2D angle (in radians). The Axis Index controls which 2 axis of the vector are used. Use the AngleInRad 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 AngleInRad 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 AngleInRad property gets and sets the angle of the vector in radians. Use the    Angle property to get and set the angle of the vector in degrees.

Namespace: RSVector



Type: T2DAxis

Property Value

Type: Single



RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb