CubemapFaceCoordsD

Description

struct Tinman.Terrain.Mapping.CubemapFaceCoordsD

Represents a point on a cubemap face with 64-bit floating-point precision.

Public / Constants

Undefined


public static readonly attribute Undefined → (CubemapFaceCoordsD)

Undefined set of cubemap face coordinates.

Zero


public static readonly attribute Zero → (CubemapFaceCoordsD)

Coordinates (0,0) on CubemapFace.NegZ.

Public / Constructors

CubemapFaceCoordsD


public constructor CubemapFaceCoordsD → (3)

in : float64

Cubemap face X-coordinate.

in : float64

Cubemap face Y-coordinate.

face opt : CubemapFace = CubemapFace.NegZ

The cubemap face.

Creates a new instance of CubemapFaceCoordsD.

Public / Methods

Clip


public method Clip → (2)

width in : int32

[>0]
Width of clip bounds.

height in : int32

[>0]
Height of clip bounds.

returns → CubemapFaceCoordsD

The resulting coordinates.

Clips these coordinates at the given bounds.

Wrap


public method Wrap → (1)

in : int32

Maximum cubemap coordinate.

returns → CubemapFaceCoordsD

The resulting coordinates.

Wraps these coordinates around the cubemap edges if necessary.

Public / Attributes

Face


public readonly attribute Face → (CubemapFace)

The cubemap face.

IsUndefined


public attribute IsUndefined → (get)

value : bool

true if the coordinates are undefined, false if not.

Is this an undefined set of cubemap face coordinates?

X


public readonly attribute X → (float64)

Cubemap face X-coordinate.

XY


public attribute XY → (get)

value : Vec2D

The coordinates.

Returns the face X- and Y-coordinates.

Y


public readonly attribute Y → (float64)

Cubemap face Y-coordinate.