A class representing a range of floating point numbers

Usage:

  • Initialize using Range.get() var range = Range.get(0, 0);
  • Or with an array var range:Range = [0, 1];
  • Recycle ranges when you're done with them: my_range.put()

Variables

@:implread onlydifference:Float

@:implmax:Float

@:implmin:Float

Methods

@:implinlinecopy ():Range

@:implinlinecopy_from (this:Vec2):Range

@:implinlinedenormalize (this:Vec2):Float

@:implinlineequals (this:Vec2):Bool

@:implinlineget_random ():Float

@:implinlinein_range (this:Vec2):Bool

@:implinlinenormalize (this:Vec2):Float

@:implinlineput ():Void

@:value({ max : 1, min : 0 })@:implinlineset (this:Vec2, min:Float = 0):Range

@:implinlinetoString ():String

Static methods

@:value({ max : 1, min : 0 })staticget (min:Float = 0, max:Float = 1):Range