DomQuad Class
https://drafts.fxtf.org/geometry/#domquad
public sealed class DomQuadConstructors
| Name | Description |
|---|---|
| DomQuad(DomPointInit?, DomPointInit?, DomPointInit?, DomPointInit?) | https://drafts.fxtf.org/geometry/#dom-domquad-domquad |
DomQuad(DomPointInit?, DomPointInit?, DomPointInit?, DomPointInit?)
DomQuad.cshttps://drafts.fxtf.org/geometry/#dom-domquad-domquad
public DomQuad(DomPointInit? p1 = null, DomPointInit? p2 = null, DomPointInit? p3 = null, DomPointInit? p4 = null)Parameters
See also
Properties
| Name | Description |
|---|---|
| P1 | Gets the first corner point of the quadrilateral. |
| P2 | Gets the second corner point of the quadrilateral. |
| P3 | Gets the third corner point of the quadrilateral. |
| P4 | Gets 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
| Name | Description |
|---|---|
| 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.cshttps://drafts.fxtf.org/geometry/#create-a-domquad-from-the-domquadinit-dictionary
public static DomQuad FromQuad(DomQuadInit? other = null)FromRect(DomRectInit?)
DomQuad.cshttps://drafts.fxtf.org/geometry/#create-a-domquad-from-the-domrectinit-dictionary
public static DomQuad FromRect(DomRectInit? other = null)GetBounds()
DomQuad.cshttps://drafts.fxtf.org/geometry/#dom-domquad-getbounds
public DomRect GetBounds()ToJson()
DomQuad.csReturns a dictionary that represents the quadrilateral, with its four points converted to point dictionaries.
public DomQuadInit ToJson()