Пример #1
0
        public static unsafe void CopyTo(this PointCloudOfXYZ @this, PointCloudOfXYZL other)
        {
            if (@this.Count != other.Count)
            {
                throw new ArgumentOutOfRangeException(nameof(other), "lengths must match");
            }

            var count = @this.Count;

            var tptr = @this.Data;
            var optr = other.Data;

            for (var i = 0; i < count; i++)
            {
                (optr + i)->V = (tptr + i)->V;
            }
        }
 public PointCloudOfXYZL(PointCloudOfXYZL cloud, Std.VectorOfInt indices)
     : this(Invoke.pointcloud_xyzl_ctor_indices(cloud.Ptr, indices.Ptr))
 {
 }