Defines a point on the Cartesian plane.
Point.new(x: 0, y: 0)
Point.big(x, y)
Point.rand(x: 1.0, y: 1.0)
Point.rand2(x: 1.0, y: 1.0)
.x = value
Get or set the x coordinate value.
.y = value
Get or set the y coordinate value.
.set(argX: 0, argY: 0)
Sets the point x and y values.
==(aPoint)
Answers a Boolean whether the receiver equals the argument.
Returns a hash value for the receiver.
+(delta)
-(delta)
*(scale)
/(scale)
Multiplication by a Point.
Rotation about the origin by the angle given in radians.
Absolute value of the point.
.rho = rho: 1
Return the polar coordinate radius of the receiver.
.theta = theta: 0
Return the polar coordinate angle of the receiver.
.dist(aPoint)
Return the distance from the receiver to aPoint.
Return a Point whose x and y coordinates are swapped.
Round the coordinate values to a multiple of quantum.
Truncate the coordinate values to a multiple of quantum.
Returns a complex number with x as the real part and y as the imaginary part.
Return a string representing the receiver.
<(that, adverb)
<=(that, adverb)
>(that, adverb)
>=(that, adverb)
@(aPoint)
.angle = angle: 0
.biexp(inCenter, inMin, inMax, outCenter, outMin, outMax, clip: 'minmax')
.bilin(inCenter, inMin, inMax, outCenter, outMin, outMax, clip: 'minmax')
.blend(that, blendfrac: 0.5)
.clip(lo, hi)
.clip2(that, adverb)
.curvelin(inMin: 0, inMax: 1, outMin: 0, outMax: 1, curve: -4, clip: 'minmax')
.div(scale)
.excess(that, adverb)
.expexp(inMin: 0.001, inMax: 1, outMin: 0.001, outMax: 1, clip: 'minmax')
.explin(inMin: 0.001, inMax: 1, outMin: 0, outMax: 1, clip: 'minmax')
.exprand(that, adverb)
.fold(lo, hi)
.fold2(that, adverb)
.lincurve(inMin: 0, inMax: 1, outMin: 0, outMax: 1, curve: -4, clip: 'minmax')
.linexp(inMin: 0, inMax: 1, outMin: 0.001, outMax: 1, clip: 'minmax')
.linlin(inMin: 0, inMax: 1, outMin: 0, outMax: 1, clip: 'minmax')
.max(that: 0, adverb)
.min(that, adverb)
.mod(that)
.pow(that, adverb)
.roundUp(that: 1.0, adverb)
.rrand(that, adverb)
.transformFromRect(rect, fromRect, keepRatio: false, scale: 1, move: 0.5)
.transformToRect(rect, fromRect, keepRatio: false, scale: 1, move: 0.5)
.wrap(lo, hi)
.wrap2(that, adverb)
.xrand(that, adverb)
.xrand2(that, adverb)