Struct PhotosensorRawData
Stores the measurement done by the photosensor during the sampling.
Namespace: Mechatronics.SensorSDK
Syntax
[GenerateHLSL(PackingRules.Exact, true, false, false, 1, false, false, false, -1, "D:\\temp\\com.unity.sensorsdk@1.0\\Packages\\com.unity.sensorsdk\\Runtime\\Sensors\\Components\\Photosensor\\PhotosensorRawData.cs", needAccessors = false)]
public struct PhotosensorRawData
Fields
cellIndex
Identifies the laser beam that took the measurement.
Declaration
public uint cellIndex
Field Value
Type | Description |
---|---|
UInt32 |
intensity
Intensity measured in watts/m^2
Declaration
public float intensity
Field Value
Type | Description |
---|---|
Single |
sphericalCoordinates
Sample position in the sensor's reference frame, in spherical coordinates.
Declaration
public Vector3 sphericalCoordinates
Field Value
Type | Description |
---|---|
Vector3 |
Properties
Size
Size of this structure.
Declaration
public static readonly int Size { get; }
Property Value
Type | Description |
---|---|
Int32 |