---
title: rglDirection
framework: Force Feedback
role: symbol
role_heading: Instance Property
platforms: [Mac Catalyst 13.0+, macOS 10.2+]
path: forcefeedback/ffeffect/rgldirection
---

# rglDirection

Pointer to a LONG array (of cAxes elements) containing either Cartesian coordinates, polar coordinates, or spherical coordinates.

## Declaration

```swift
var rglDirection: LPLONG!
```

## Discussion

Discussion The flags FFEFF_CARTESIAN, FFEFF_POLAR, and FFEFF_SPHERICAL determine the semantics of the values in the array. If Cartesian, each value in rglDirection is associated with the corresponding axis in rgdwAxes. If polar, the angle is measured in hundredths of degrees from the (0, -1) direction, rotated in the direction of (1, 0). This usually means that north is away from the user, and east is to the user’s right. The last element is not used. If spherical, the first angle is measured in hundredths of a degree from the (1, 0) direction, rotated in the direction of (0, 1). The second angle (if the number of axes is three or more) is measured in hundredths of a degree toward (0, 0, 1). The third angle (if the number of axes is four or more) is measured in hundredths of a degree toward (0, 0, 0, 1), and so on. The last element is not used. Note: The rglDirection array must contain cAxes entries, even if polar or spherical coordinates are given. In these cases, the last element in the rglDirection array is reserved for future use and must be 0

## See Also

### Instance Properties

- [cAxes](forcefeedback/ffeffect/caxes.md)
- [cbTypeSpecificParams](forcefeedback/ffeffect/cbtypespecificparams.md)
- [dwDuration](forcefeedback/ffeffect/dwduration.md)
- [dwFlags](forcefeedback/ffeffect/dwflags.md)
- [dwGain](forcefeedback/ffeffect/dwgain.md)
- [dwSamplePeriod](forcefeedback/ffeffect/dwsampleperiod.md)
- [dwSize](forcefeedback/ffeffect/dwsize.md)
- [dwStartDelay](forcefeedback/ffeffect/dwstartdelay.md)
- [dwTriggerButton](forcefeedback/ffeffect/dwtriggerbutton.md)
- [dwTriggerRepeatInterval](forcefeedback/ffeffect/dwtriggerrepeatinterval.md)
- [lpEnvelope](forcefeedback/ffeffect/lpenvelope.md)
- [lpvTypeSpecificParams](forcefeedback/ffeffect/lpvtypespecificparams.md)
- [rgdwAxes](forcefeedback/ffeffect/rgdwaxes.md)
