Float2

Description

sealed class Tinman.Terrain.Vertices.Arrays.Float2

Derived from

Float0 abstract

Data container for application vertex data: two 32-bit floating-point values.

Public / Constructors

Float2


public constructor Float2 → (1)

capacity in : int32

The capacity, in vertices.

Creates a new data container.

Public / Methods

Get


[Pure]
public method Get → (1)

index in : int32

[0..ICapacity.Capacity-1]
The element index.

returns → Vec2F

The vertex element.

Returns an element of this vertex data array.

Set

2 overloads


public method Set1 → (2)

index in : int32

[0..ICapacity.Capacity-1]
The element index.

tuple in : Vec2F

The vertex element.

Sets an element of this vertex data array.


public method Set2 → (3)

index in : int32

[0..ICapacity.Capacity-1]
The element index.

in : float32

X-component of vertex element.

in : float32

Y-component of vertex element.

Sets an element of this vertex data array.