Table of Contents

Method FromCenterSizeAngle

Namespace
LMKit.Graphics.Geometry
Assembly
LM-Kit.NET.dll

FromCenterSizeAngle(double, double, double, double, double)

Creates a quadrilateral by specifying its center, size, and rotation angle.

public static Quadrilateral FromCenterSizeAngle(double centerX, double centerY, double width, double height, double angleDegrees)

Parameters

centerX double

The X-coordinate of the rectangle's center.

centerY double

The Y-coordinate of the rectangle's center.

width double

The rectangle width.

height double

The rectangle height.

angleDegrees double

Clockwise rotation angle in degrees.

Returns

Quadrilateral

A new Quadrilateral representing the rotated rectangle.