DomPointReadOnly Class

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

public class DomPointReadOnly

Constructors

NameDescription
DomPointReadOnly(double, double, double, double)Creates a point with the given coordinates.

DomPointReadOnly(double, double, double, double)

DomPoint.cs

Creates a point with the given coordinates.

public DomPointReadOnly(double x = 0d, double y = 0d, double z = 0d, double w = 1d)

Properties

NameDescription
WGets the W coordinate of the point.
XGets the X coordinate of the point.
YGets the Y coordinate of the point.
ZGets the Z coordinate of the point.

Gets the W coordinate of the point.

public double W { get; }

Gets the X coordinate of the point.

public double X { get; }

Gets the Y coordinate of the point.

public double Y { get; }

Gets the Z coordinate of the point.

public double Z { get; }

Methods

NameDescription
FromPoint(DomPointInit?)Creates a read-only point from the coordinates of the given dictionary.
MatrixTransform(DomMatrixInit?)https://drafts.fxtf.org/geometry/#dom-dompointreadonly-matrixtransform
ToJson()Returns a dictionary representation of the point, as used by JSON.stringify().

FromPoint(DomPointInit?)

DomPoint.cs

Creates a read-only point from the coordinates of the given dictionary.

public static DomPointReadOnly FromPoint(DomPointInit? other = null)

MatrixTransform(DomMatrixInit?)

DomPoint.cs

https://drafts.fxtf.org/geometry/#dom-dompointreadonly-matrixtransform

public DomPoint MatrixTransform(DomMatrixInit? matrix = null)

ToJson()

DomPoint.cs

Returns a dictionary representation of the point, as used by JSON.stringify().

public DomPointInit ToJson()