TerrainTriangleResult

Description

sealed class Tinman.Engine.Scenes.Queries.TerrainTriangleResult

Derived from

SceneQueryResult abstract

A query result that describes a triangle on the terrain surface.

Public / Constructors

Terrain​Triangle​Result


public constructor TerrainTriangleResult → (4)

distance in : RangeD

The value for ISceneQueryResult.Distance.

vertices in : Vec3I

The value for Vertices.

weights in : Vec3D

The value for Weights.

parentSector in : TerrainSectorResult

The value for ParentSector.

Creates a new instance of TerrainTriangleResult.

Public / Attributes

Parent​Sector


public attribute ParentSector → (get)

value : TerrainSectorResult

The parent result or null if none.

The parent sector result.

Vertices


public attribute Vertices → (get)

value : Vec3I

The vertex indices.

The vertex indices of the triangle corners.

Weights


public attribute Weights → (get)

value : Vec3D

The barycentric weights.

The barycentric weights of the triangle vertices that correspond to the picked point.