Class WriteExtensions
Static class that contains various extension methods that allow writing data types to a buffer.
Namespace: Unity.Kinematica
Syntax
public static class WriteExtensions
Methods
Write(Buffer, SamplingTime)
Writes a sampling time to the buffer.
Declaration
public static void Write(this Buffer buffer, SamplingTime samplingTime)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | |
SamplingTime | samplingTime | The sampling time that should be written to the buffer. |
Write(Buffer, TimeIndex)
Writes a time index to the buffer.
Declaration
public static void Write(this Buffer buffer, TimeIndex timeIndex)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | |
TimeIndex | timeIndex | The time index that should be written to the buffer. |
Write(Buffer, AffineTransform)
Writes an affine transform to the buffer.
Declaration
public static void Write(this Buffer buffer, AffineTransform transform)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | |
AffineTransform | transform | The transform that should be written to the buffer. |
WriteQuantized(Buffer, AffineTransform)
Writes an affine transform to the buffer.
Declaration
public static void WriteQuantized(this Buffer buffer, AffineTransform transform)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | |
AffineTransform | transform | The transform that should be written to the buffer. |
Remarks
The transform value will be stored in a quantized format.