Class LinearCmd.VectorSubcommand
Container object for representing a single linear motion command on a device that may have multiple independent linear actuated features.
Inherited Members
Namespace: Buttplug.Core.Messages
Assembly: Buttplug.dll
Syntax
public class VectorSubcommand : GenericMessageSubcommand
Constructors
VectorSubcommand(UInt32, UInt32, Double)
Initializes a new instance of the LinearCmd.VectorSubcommand class.
Declaration
public VectorSubcommand(uint index, uint duration, double position)
Parameters
| Type | Name | Description |
|---|---|---|
| UInt32 | index | Linear actuator index. |
| UInt32 | duration | Duration of movement. |
| Double | position | Goal position. |
Fields
Duration
Duration of movement to goal position.
Declaration
public uint Duration
Field Value
| Type | Description |
|---|---|
| UInt32 |
Properties
Position
Gets/sets actuator goal position (0.0-1.0).
Declaration
public double Position { get; set; }
Property Value
| Type | Description |
|---|---|
| Double |