CanvasAnchor

Description

struct Tinman.Terrain.Tools.CanvasAnchor

An anchor that ties a screen location with a point on a cubemap face.

See also

Canvas.Anchor2

Public / Constants

Invalid


public static readonly attribute Invalid → (CanvasAnchor)

The invalid canvas anchor.

Public / Methods

Restore


public method Restore → (1)

canvas in : Canvas

[not-null]
The canvas to sue.

returns → bool

true if the anchor has been restored,
false if the anchor cannot be restored, because it is invalid or it lies outside of the canvas.

Restores this anchor in the given canvas in.

Public / Attributes

Coords


public readonly attribute Coords → (CubemapFaceCoordsI)

The coordinates of the point on the cubemap face.

Is​Invalid


public attribute IsInvalid → (get)

value : bool

true if this anchor is invalid, false if it is valid.

Is this anchor invalid?

Pixel​X


public readonly attribute PixelX → (int32)

The screen X-coordinate of this anchor.

Pixel​Y


public readonly attribute PixelY → (int32)

The screen Y-coordinate of this anchor.