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#
The x-coordinate of the top-left corner.
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#
Width Property#
The width of the bounding box.
public double Width { get; init; }
Property Value#
X Property#
The x-coordinate of the top-left corner.
public double X { get; init; }
Property Value#
Y Property#
The y-coordinate of the top-left corner.
public double Y { get; init; }