Class RenderResult.Depth
A depth_array frame: a (height, width) float array of depths (MuJoCo).
public sealed class RenderResult.Depth : RenderResult, IEquatable<RenderResult>, IDisposable
- Inheritance
-
RenderResult.Depth
- Implements
- Inherited Members
- Extension Methods
Constructors
Depth(NDArray)
Wraps a depth frame.
public Depth(NDArray frame)
Parameters
frameNDArrayThe frame; the caller of
render()owns it.
Exceptions
- ArgumentNullException
Thrown when
frameis null.
Properties
Frame
The depth frame.
public NDArray Frame { get; }
Property Value
Methods
Dispose()
Releases the frame.
public override void Dispose()
Equals(RenderResult?)
Structural equality (see the class remarks).
public override bool Equals(RenderResult? other)
Parameters
otherRenderResultThe other result; may be null.
Returns
GetHashCode()
A hash consistent with Equals(RenderResult?): the case and the shapes, never the pixels.
public override int GetHashCode()
Returns
- int
The hash.
ToString()
Describes the frame by shape and dtype.
public override string ToString()
Returns
- string
For example
Depth((480, 480), float32).