TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

struct CubemapFaceCoordsD in Tinman.Terrain.Mapping

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

struct CubemapFaceCoordsD implements IEquatable<CubemapFaceCoordsD>

Public / Constants

Undefined

Undefined set of cubemap face coordinates.

public static readonly field Undefined
type CubemapFaceCoordsD

See also:

IsUndefined

Zero

Coordinates (0,0) on NegZ.

public static readonly field Zero
type CubemapFaceCoordsD

Public / Attributes

Face

The cubemap face.

public readonly field Face
type CubemapFace

IsUndefined

Is this an undefined set of cubemap face coordinates?

public property IsUndefined { get }
type bool
value true if the coordinates are undefined, false if not.

See also:

Undefined

X

Cubemap face X-coordinate.

public readonly field X
type float64

XY

Returns the face X- and Y-coordinates.

public property XY { get }
type Vec2D
value The coordinates.

Y

Cubemap face Y-coordinate.

public readonly field Y
type float64

Public / Constructors

CubemapFaceCoordsD

Creates a new instance of CubemapFaceCoordsD.

public constructor CubemapFaceCoordsD (float64 x, float64 y, CubemapFace face)
params x Cubemap face X-coordinate.
  y Cubemap face Y-coordinate.
  face The cubemap face.

Public / Methods

Clip

Clips these coordinates at the given bounds.

public method Clip (int32 width, int32 height)
type CubemapFaceCoordsD
params width [>0] Width of clip bounds.
  height [>0] Height of clip bounds.
returns The resulting coordinates.

Equals

public method Equals (CubemapFaceCoordsD other)
type bool
params other

ToString

[Pure]
public override method ToString ()
type string

Wrap

Wraps these coordinates around the cubemap edges if necessary.

public method Wrap (int32 n)
type CubemapFaceCoordsD
params n Maximum cubemap coordinate.
returns The resulting coordinates.