SimpleArrayVector3d

ON_SimpleArray<ON_3dVector>, ON_3dVectorArray all have the same size This class wraps all of these C++ versions. If you are not writing C++ code then this class is not for you.

Constructors

SimpleArrayVector3d

#Since v9.0
public SimpleArrayVector3d()
Initializes a new empty SimpleArrayVector3d instance.

SimpleArrayVector3d

#Since v9.0
public SimpleArrayVector3d(IEnumerable<Vector3d> vectors)
Initializes a new SimpleArrayVector3d instance from a set of vectors
vectors (IEnumerable<Vector3d>)

Finalizer

~SimpleArrayVector3d

#
~SimpleArrayVector3d()
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

Properties

Count

#Since v9.0
public int Count { get; }
Gets the amount of vectors in this array.

Methods

Add

#Since v9.0
public void Add(Vector3d v)
Adds a vector to the list
v (Vector3d)

ConstPointer

#Since v9.0
public nint ConstPointer()
Gets the constant (immutable) pointer of this array.
The constant pointer.

Dispose

#Since v9.0
public void Dispose()
Actively reclaims unmanaged resources that this instance uses.

Dispose

#
protected virtual void Dispose(bool disposing)
For derived class implementers.

This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.

disposing (bool)true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer.

NonConstPointer

#Since v9.0
public nint NonConstPointer()
Gets the non-constant pointer (for modification) of this array.
The non-constant pointer.

ToArray

#Since v9.0
public Vector3d[] ToArray()
Copies the unmanaged array to a managed counterpart.
The managed array.