Class DenseGrid3f
3D dense grid of floating-point scalar values.
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
Constructors
DenseGrid3f()
Declaration
DenseGrid3f(DenseGrid3f)
Declaration
public DenseGrid3f(DenseGrid3f copy)
Parameters
DenseGrid3f(Int32, Int32, Int32, Single)
Declaration
public DenseGrid3f(int ni, int nj, int nk, float initialValue)
Parameters
Fields
Buffer
Declaration
Field Value
ni
Declaration
Field Value
nj
Declaration
Field Value
nk
Declaration
Field Value
Properties
Bounds
Declaration
public AxisAlignedBox3i Bounds { get; }
Property Value
BoundsInclusive
Declaration
public AxisAlignedBox3i BoundsInclusive { get; }
Property Value
Item[Vector3i]
Declaration
public float this[Vector3i ijk] { get; set; }
Parameters
Property Value
Item[Int32]
Declaration
public float this[int i] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Property Value
Item[Int32, Int32, Int32]
Declaration
public float this[int i, int j, int k] { get; set; }
Parameters
Property Value
size
Declaration
Property Value
Methods
apply(Func<Single, Single>)
Declaration
public void apply(Func<float, float> f)
Parameters
assign(Single)
Declaration
public void assign(float value)
Parameters
Type |
Name |
Description |
Single |
value |
|
get_slice(Int32, Int32)
Declaration
public DenseGrid2f get_slice(int slice_i, int dimension)
Parameters
Type |
Name |
Description |
Int32 |
slice_i |
|
Int32 |
dimension |
|
Returns
get_x_pair(Int32, Int32, Int32, out Double, out Double)
Declaration
public void get_x_pair(int i0, int j, int k, out double a, out double b)
Parameters
get_x_pair(Int32, Int32, Int32, out Single, out Single)
Declaration
public void get_x_pair(int i0, int j, int k, out float a, out float b)
Parameters
Indices()
Declaration
public IEnumerable<Vector3i> Indices()
Returns
InsetIndices(Int32)
Declaration
public IEnumerable<Vector3i> InsetIndices(int border_width)
Parameters
Type |
Name |
Description |
Int32 |
border_width |
|
Returns
resize(Int32, Int32, Int32)
Declaration
public void resize(int ni, int nj, int nk)
Parameters
set_max(ref Vector3i, Single)
Declaration
public void set_max(ref Vector3i ijk, float f)
Parameters
set_min(ref Vector3i, Single)
Declaration
public void set_min(ref Vector3i ijk, float f)
Parameters
set_slice(DenseGrid2f, Int32, Int32)
Declaration
public void set_slice(DenseGrid2f slice, int slice_i, int dimension)
Parameters
swap(DenseGrid3f)
Declaration
public void swap(DenseGrid3f g2)
Parameters
to_index(Int32)
Declaration
public Vector3i to_index(int idx)
Parameters
Type |
Name |
Description |
Int32 |
idx |
|
Returns
to_linear(Vector3i)
Declaration
public int to_linear(Vector3i ijk)
Parameters
Returns
to_linear(ref Vector3i)
Declaration
public int to_linear(ref Vector3i ijk)
Parameters
Returns
to_linear(Int32, Int32, Int32)
Declaration
public int to_linear(int i, int j, int k)
Parameters
Returns