Project: /_project.yaml Book: /_book.yaml

fuchsia.math

STRUCTS

Point {:#Point}

Defined in fuchsia.math/math.fidl

An integer position in a 2D cartesian space.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

PointF {:#PointF}

Defined in fuchsia.math/math.fidl

A floating point position in a 2D cartesian space.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

Point3F {:#Point3F}

Defined in fuchsia.math/math.fidl

A floating point position in a 3D cartesian space.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

Size {:#Size}

Defined in fuchsia.math/math.fidl

The integer dimensions of a rectangular region in a 2D cartesian space.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

This type allows for negative dimensions, to which protocols can give semantics. Protocols that use this type should specify whether negative dimensions are meaningful, and, if they are meaningful, what they mean.

SizeF {:#SizeF}

Defined in fuchsia.math/math.fidl

The floating point dimensions of a rectangular region in a 2D cartesian space.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

This type allows for negative dimensions, to which protocols can give semantics. Protocols that use this type should specify whether negative dimensions are meaningful, and, if they are meaningful, what they mean.

Rect {:#Rect}

Defined in fuchsia.math/math.fidl

An integral, rectangular, axis-aligned region in a 2D cartesian space.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

If width is positive, the region includes x values starting at x and increasing along the x-axis. If width is negative, the region includes x values starting at x and decreasing along the x-axis.

If height is positive, the region includes y values starting at y and increasing along the y-axis. If height is negative, the region includes y values starting at y and decreasing along the y-axis.

RectF {:#RectF}

Defined in fuchsia.math/math.fidl

A floating point, rectangular, axis-aligned region in a 2D cartesian space.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

If width is positive, the region includes x values starting at x and increasing along the x-axis. If width is negative, the region includes x values starting at x and decreasing along the x-axis.

If height is positive, the region includes y values starting at y and increasing along the y-axis. If height is negative, the region includes y values starting at y and decreasing along the y-axis.

RRectF {:#RRectF}

Defined in fuchsia.math/math.fidl

A floating point rounded rectangle with the custom radii for all four corners.

A region in a 2D cartesian space consisting of linear, axis-aligned sides with corners rounded into a quarter ellipse.

If the quarter ellipses in two corners would overlap, their radii are clamped such that the ellipses meet with an axis-aligned tangent.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

If width is positive, the region includes x values starting at x and increasing along the x-axis. If width is negative, the region includes x values starting at x and decreasing along the x-axis.

If height is positive, the region includes y values starting at y and increasing along the y-axis. If height is negative, the region includes y values starting at y and decreasing along the y-axis.

Must not be negative.

Must not be negative.

Must not be negative.

Must not be negative.

Must not be negative.

Must not be negative.

Must not be negative.

Must not be negative.

Transform {:#Transform}

Defined in fuchsia.math/math.fidl

A projective transformation of a 3D cartesian space.

A transform consists of a 4x4 matrix that operates in homogeneous coordinates. For example, a point located at (x, y, z) in the cartesian space is transformed by M to a point located at (x'/w', y'/w', z'/w'), where (x', y', z', w') = M (x, y, z, 1).

Specifically, if the matrix is as follows:

a b c d
e f g h
i j k l
m n o p

then the entries in this array are (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p).

Inset {:#Inset}

Defined in fuchsia.math/math.fidl

An integer offset to apply to each edge of a rectangle.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

InsetF {:#InsetF}

Defined in fuchsia.math/math.fidl

A floating point offset to apply to each edge of a rectangle.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

Point {:#Point}

Defined in fuchsia.math/math.fidl

An integer position in a 2D cartesian space.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

PointF {:#PointF}

Defined in fuchsia.math/math.fidl

A floating point position in a 2D cartesian space.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

Point3F {:#Point3F}

Defined in fuchsia.math/math.fidl

A floating point position in a 3D cartesian space.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

Size {:#Size}

Defined in fuchsia.math/math.fidl

The integer dimensions of a rectangular region in a 2D cartesian space.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

This type allows for negative dimensions, to which protocols can give semantics. Protocols that use this type should specify whether negative dimensions are meaningful, and, if they are meaningful, what they mean.

SizeF {:#SizeF}

Defined in fuchsia.math/math.fidl

The floating point dimensions of a rectangular region in a 2D cartesian space.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

This type allows for negative dimensions, to which protocols can give semantics. Protocols that use this type should specify whether negative dimensions are meaningful, and, if they are meaningful, what they mean.

Rect {:#Rect}

Defined in fuchsia.math/math.fidl

An integral, rectangular, axis-aligned region in a 2D cartesian space.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

If width is positive, the region includes x values starting at x and increasing along the x-axis. If width is negative, the region includes x values starting at x and decreasing along the x-axis.

If height is positive, the region includes y values starting at y and increasing along the y-axis. If height is negative, the region includes y values starting at y and decreasing along the y-axis.

RectF {:#RectF}

Defined in fuchsia.math/math.fidl

A floating point, rectangular, axis-aligned region in a 2D cartesian space.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

If width is positive, the region includes x values starting at x and increasing along the x-axis. If width is negative, the region includes x values starting at x and decreasing along the x-axis.

If height is positive, the region includes y values starting at y and increasing along the y-axis. If height is negative, the region includes y values starting at y and decreasing along the y-axis.

RRectF {:#RRectF}

Defined in fuchsia.math/math.fidl

A floating point rounded rectangle with the custom radii for all four corners.

A region in a 2D cartesian space consisting of linear, axis-aligned sides with corners rounded into a quarter ellipse.

If the quarter ellipses in two corners would overlap, their radii are clamped such that the ellipses meet with an axis-aligned tangent.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

If width is positive, the region includes x values starting at x and increasing along the x-axis. If width is negative, the region includes x values starting at x and decreasing along the x-axis.

If height is positive, the region includes y values starting at y and increasing along the y-axis. If height is negative, the region includes y values starting at y and decreasing along the y-axis.

Must not be negative.

Must not be negative.

Must not be negative.

Must not be negative.

Must not be negative.

Must not be negative.

Must not be negative.

Must not be negative.

Transform {:#Transform}

Defined in fuchsia.math/math.fidl

A projective transformation of a 3D cartesian space.

A transform consists of a 4x4 matrix that operates in homogeneous coordinates. For example, a point located at (x, y, z) in the cartesian space is transformed by M to a point located at (x'/w', y'/w', z'/w'), where (x', y', z', w') = M (x, y, z, 1).

Specifically, if the matrix is as follows:

a b c d
e f g h
i j k l
m n o p

then the entries in this array are (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p).

Inset {:#Inset}

Defined in fuchsia.math/math.fidl

An integer offset to apply to each edge of a rectangle.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.

InsetF {:#InsetF}

Defined in fuchsia.math/math.fidl

A floating point offset to apply to each edge of a rectangle.

This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.