Docs · API reference · Motus.Abstractions

BoundingBox Class#

Represents the bounding box of an element in CSS pixels.

public sealed record BoundingBox : System.IEquatable<Motus.Abstractions.BoundingBox>

Inheritance System.Object → BoundingBox

Implements System.IEquatable<BoundingBox>

Constructors#

BoundingBox(double, double, double, double) Constructor#

Represents the bounding box of an element in CSS pixels.

public BoundingBox(double X, double Y, double Width, double Height);

Parameters#

X System.Double

The x-coordinate of the top-left corner.

Y System.Double

The y-coordinate of the top-left corner.

Width System.Double

The width of the bounding box.

Height System.Double

The height of the bounding box.

Properties#

Height Property#

The height of the bounding box.

public double Height { get; init; }

Property Value#

System.Double

Width Property#

The width of the bounding box.

public double Width { get; init; }

Property Value#

System.Double

X Property#

The x-coordinate of the top-left corner.

public double X { get; init; }

Property Value#

System.Double

Y Property#

The y-coordinate of the top-left corner.

public double Y { get; init; }

Property Value#

System.Double