ZoneManagementTrait.TwoDCartesianVertexStruct

class ZoneManagementTrait.TwoDCartesianVertexStruct : ClusterStruct


Encodes a point on the two-dimensional Cartesian plane for the TwoDCartesianZone feature.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

Creates the TwoDCartesianVertexStruct class.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

UShort

The X coordinate of the vertex.

UShort

The Y coordinate of the vertex.

Public constructors

TwoDCartesianVertexStruct

TwoDCartesianVertexStruct(x: UShort, y: UShort)

Creates the TwoDCartesianVertexStruct class.

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

x

val xUShort

The X coordinate of the vertex.

y

val yUShort

The Y coordinate of the vertex.