[]
        
(Showing Draft Content)

C1.Util.DX.Size2F

Size2F Struct

Structure specifing a size with float Width and Height.

Implements
Namespace: C1.Util.DX
Assembly: C1.Win.C1DX.4.8.dll
Syntax
public struct Size2F : IEquatable<Size2F>

Constructors

Name Description
Size2F(Size2D)

Initializes a new instance of the Size2F struct.

Size2F(Size)

Initializes a new instance of the Size2F struct.

Size2F(SizeF)

Initializes a new instance of the Size2F struct.

Size2F(float, float)

Initializes a new instance of the Size2F struct.

Fields

Name Description
Empty

An empty size.

Height

The vertical component of this Size2F structure.

Infinite

A size with infinite Width and Height.

SizeInBytes

The size of the Size2F type, in bytes.

Width

The horizontal component of this Size2F structure.

Properties

Name Description
IsEmpty

Determines if all components of Size2F are equal to zero.

Methods

Name Description
Add(Size2F, Size2F)

Adds the width and height of one Size2F structure to the width and height of another Size2F structure.

Equals(Size2F)

Indicates whether this instance and a specified object are equal.

Equals(object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns a hash code for this instance.

Round()

Returns a Size2L with rounded width and height.

Scale(Size2F, float)

Scales the width and height by the specified scaleFactor.

Scale(Size2F, float, float)

Scales the width and height by the specified scaleX and scaleY.

Scale(float)

Scales the width and height by the specified scaleFactor.

Scale(float, float)

Scales the width and height by the specified scaleX and scaleY.

Subtract(Size2F, Size2F)

Subtracts the width and height of one Size2F structure from the width and height of another Size2F structure.

ToSize()

Converts Size2F to C1.Win.Interop.Size.

ToSize2D()

Converts Size2F to Size2D.

ToSizeF()

Converts Size2F to SizeF.

ToString()

Returns a string that represents the current object.

Truncate()

Returns a Size2L with truncated width and height.

Operators

Name Description
operator ==(Size2F, Size2F)

Determines if the specified values are equal.

explicit operator Vector2(Size2F)

Performs an explicit conversion from Size2F to Vector2.

explicit operator Size(Size2F)

Performs an explicit conversion from Size2F to C1.Win.Interop.Size.

explicit operator SizeF(Size2F)

Performs an explicit conversion from Size2F to SizeF.

explicit operator Size2F(Vector2)

Performs an explicit conversion from Vector2 to Size2F.

explicit operator Size2F(Size)

Performs an explicit conversion from C1.Win.Interop.Size to Size2F.

explicit operator Size2F(SizeF)

Performs an explicit conversion from SizeF to Size2F.

operator !=(Size2F, Size2F)

Determines if the specified values are not equal.