DomQuad Class

https://drafts.fxtf.org/geometry/#domquad

public sealed class DomQuad

Constructors

NameDescription
DomQuad(DomPointInit?, DomPointInit?, DomPointInit?, DomPointInit?)https://drafts.fxtf.org/geometry/#dom-domquad-domquad

DomQuad(DomPointInit?, DomPointInit?, DomPointInit?, DomPointInit?)

DomQuad.cs

https://drafts.fxtf.org/geometry/#dom-domquad-domquad

public DomQuad(DomPointInit? p1 = null, DomPointInit? p2 = null, DomPointInit? p3 = null, DomPointInit? p4 = null)

Properties

NameDescription
P1Gets the first corner point of the quadrilateral.
P2Gets the second corner point of the quadrilateral.
P3Gets the third corner point of the quadrilateral.
P4Gets the fourth corner point of the quadrilateral.

Gets the first corner point of the quadrilateral.

public DomPoint P1 { get; }

Gets the second corner point of the quadrilateral.

public DomPoint P2 { get; }

Gets the third corner point of the quadrilateral.

public DomPoint P3 { get; }

Gets the fourth corner point of the quadrilateral.

public DomPoint P4 { get; }

Methods

NameDescription
FromQuad(DomQuadInit?)https://drafts.fxtf.org/geometry/#create-a-domquad-from-the-domquadinit-dictionary
FromRect(DomRectInit?)https://drafts.fxtf.org/geometry/#create-a-domquad-from-the-domrectinit-dictionary
GetBounds()https://drafts.fxtf.org/geometry/#dom-domquad-getbounds
ToJson()Returns a dictionary that represents the quadrilateral, with its four points converted to point dictionaries.

FromQuad(DomQuadInit?)

DomQuad.cs

https://drafts.fxtf.org/geometry/#create-a-domquad-from-the-domquadinit-dictionary

public static DomQuad FromQuad(DomQuadInit? other = null)

FromRect(DomRectInit?)

DomQuad.cs

https://drafts.fxtf.org/geometry/#create-a-domquad-from-the-domrectinit-dictionary

public static DomQuad FromRect(DomRectInit? other = null)

GetBounds()

DomQuad.cs

https://drafts.fxtf.org/geometry/#dom-domquad-getbounds

public DomRect GetBounds()

ToJson()

DomQuad.cs

Returns a dictionary that represents the quadrilateral, with its four points converted to point dictionaries.

public DomQuadInit ToJson()