PeachDrawing.Core

PeachDrawing.Core

Size Struct

Stores an ordered pair of floating-point numbers, typically the width and height of a rectangle.

public record struct Size : System.IEquatable<PeachDrawing.Core.Size>

Implements System.IEquatable<Size>

Constructors  
Size(double, double) Stores an ordered pair of floating-point numbers, typically the width and height of a rectangle.
Size(PaintPoint) Initializes a new instance of the Size structure from the specified PaintPoint structure.
Size(Size) Initializes a new instance of the Size structure from the specified existing Size structure.
Fields  
Empty Gets a Size structure that has a Height and Width value of 0.
Properties  
IsEmpty Gets a value that indicates whether this Size structure has zero width and height.
Methods  
Add(Size, Size) Adds the width and height of one Size structure to the width and height of another Size structure.
Subtract(Size, Size) Subtracts the width and height of one Size structure from the width and height of another Size structure.
Operators  
operator +(Size, Size) Adds the width and height of one Size structure to the width and height of another Size structure.
explicit operator PaintPoint(Size) Converts the specified Size structure to a PaintPoint structure.
operator -(Size, Size) Subtracts the width and height of one Size structure from the width and height of another Size structure.