Class PageAnchorExtensions

Namespace
PageCurl.Core
Assembly
PageCurl.Core.dll

Allocation-free conversions and positions for page anchors.

public static class PageAnchorExtensions
Inheritance
PageAnchorExtensions
Inherited Members

Methods

FromEdge(PageEdge)

public static PageAnchor FromEdge(PageEdge edge)

Parameters

edge PageEdge

Returns

PageAnchor

GetPosition(PageAnchor, Vector2)

public static Vector2 GetPosition(this PageAnchor anchor, Vector2 pageSize)

Parameters

anchor PageAnchor
pageSize Vector2

Returns

Vector2

IsCorner(PageAnchor)

public static bool IsCorner(this PageAnchor anchor)

Parameters

anchor PageAnchor

Returns

bool

TryGetEdge(PageAnchor, out PageEdge)

public static bool TryGetEdge(this PageAnchor anchor, out PageEdge edge)

Parameters

anchor PageAnchor
edge PageEdge

Returns

bool