MCPcopy Create free account
hub / github.com/VCVRack/Rack / fromMinMax

Method fromMinMax

include/math.hpp:310–312  ·  view source on GitHub ↗

Constructs a Rect from a top-left and bottom-right vector. */

Source from the content-addressed store, hash-verified

308 /** Constructs a Rect from a top-left and bottom-right vector.
309 */
310 static Rect fromMinMax(Vec a, Vec b) {
311 return Rect(a, b.minus(a));
312 }
313 /** Constructs a Rect from any two opposite corners.
314 */
315 static Rect fromCorners(Vec a, Vec b) {

Callers

nothing calls this directly

Calls 2

RectClass · 0.85
minusMethod · 0.80

Tested by

no test coverage detected