Class VectorDataLog
Represents a log entry that stores a 3D vector with X, Y, and Z components. This class allows for conversion to Unity's Vector3 and Vector2 types.
[Serializable]
public class VectorDataLog : DataLog
Inheritance
Constructors
VectorDataLog(Vector3, int)
Initializes a new instance of the VectorDataLog class with a Vector3 position. The vector components are optionally rounded to a specified number of decimal places.
public VectorDataLog(Vector3 pos, int digits = -1)
Parameters
| Name | Type | Description |
|---|---|---|
pos | Vector3 | The Vector3 position data. |
digits | int | The number of decimal places to round each component to. If negative, no rounding is performed. |