Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KuzVlad committed Jan 11, 2022
2 parents c4d7a39 + 92787ef commit 0bfad14
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions RF62X-Wrappers/CSharp/RF62X-SDK/RF62X-TYPES.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,37 @@ public Profile2D(void* _base)
public List<Point2D> points { get; }
public List<ushort> pixels { get; }

public ushort[] getPixelsArray()
{
return pixels.ToArray();
}

public Point2D[] getPointsArray()
{
return points.ToArray();
}

public float[] getPointsXArray()
{
float[] x = new float[points.Count];
for (int i = 0; i < points.Count; i++)
{
x[i] = points[i].X;
}
return x;
}

public float[] getPointsZArray()
{
float[] z = new float[points.Count];
for (int i = 0; i < points.Count; i++)
{
z[i] = points[i].Z;
}
return z;
}


private void* m_ProfileBase;

}
Expand Down

0 comments on commit 0bfad14

Please sign in to comment.