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

Method fromCorners

include/math.hpp:315–317  ·  view source on GitHub ↗

Constructs a Rect from any two opposite corners. */

Source from the content-addressed store, hash-verified

313 /** Constructs a Rect from any two opposite corners.
314 */
315 static Rect fromCorners(Vec a, Vec b) {
316 return fromMinMax(a.min(b), a.max(b));
317 }
318 /** Returns the infinite Rect. */
319 static Rect inf() {
320 return Rect(Vec(-INFINITY, -INFINITY), Vec(INFINITY, INFINITY));

Callers

nothing calls this directly

Calls 2

minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected