MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / Rect

Method Rect

StereoKit/Native/NativeTypes.cs:343–349  ·  view source on GitHub ↗

Create a 2D rectangle, defined by the top left corner of the rectangle, and its width/height. The X axis position of the top left corner of the rectangle. The Y axis position of the top left corner of the rectangle. The width of the rectangle. The height of the rectangle.

(float x, float y, float width, float height)

Source from the content-addressed store, hash-verified

341 /// <param name="width">The width of the rectangle.</param>
342 /// <param name="height">The height of the rectangle.</param>
343 public Rect(float x, float y, float width, float height)
344 {
345 this.x = x;
346 this.y = y;
347 this.width = width;
348 this.height = height;
349 }
350 }
351
352 /// <summary>Used to represent lines for the line drawing functions! This is just a snapshot of

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected