Point:
Filter:
Classes | Geometry

Point : Object

Cartesian point
Source: Point.sc
Subclasses: PointArray

Description

Defines a point on the Cartesian plane.

Class Methods

Point.new(x: 0, y: 0)

Defines a new point.

Inherited class methods

Undocumented class methods

Point.big(x, y)

From extension in /usr/local/share/SuperCollider/SCClassLibrary/DefaultLibrary/extNumber.sc

Point.rand(x: 1.0, y: 1.0)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/GUI/Drawing/extRect-transformations.sc

Point.rand2(x: 1.0, y: 1.0)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/GUI/Drawing/extRect-transformations.sc

Instance Methods

Accessing

.x

.x = value

Get or set the x coordinate value.

.y

.y = value

Get or set the y coordinate value.

.set(argX: 0, argY: 0)

Sets the point x and y values.

.z

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/MathLib/classes/SpherCoords/SystemOverwrites/extPoint.sc

Answer the cartesian coordinate z of the receiver, 0.

Testing

==(aPoint)

Answers a Boolean whether the receiver equals the argument.

.hash

Returns a hash value for the receiver.

Math

+(delta)

Addition.

-(delta)

Subtraction.

*(scale)

Multiplication.

/(scale)

Division.

.translate(delta)

Addition by a Point.

.scale(scale)

Multiplication by a Point.

.rotate(angle)

Rotation about the origin by the angle given in radians.

.abs

Absolute value of the point.

.rho

.rho = rho: 1

Return the polar coordinate radius of the receiver.

.theta

.theta = theta: 0

Return the polar coordinate angle of the receiver.

.dist(aPoint)

Return the distance from the receiver to aPoint.

.transpose

Return a Point whose x and y coordinates are swapped.

.round(quant)

Round the coordinate values to a multiple of quantum.

.trunc(quant)

Truncate the coordinate values to a multiple of quantum.

.angle

.angle = angle: 0

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

Return the polar coordinate angle of the receiver.

.angles

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/MathLib/classes/SpherCoords/SystemOverwrites/extPoint.sc

Return the spherical coordinate azimuth and elevation angles of the receiver.

.mirrorX

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/MathLib/classes/SpherCoords/SystemOverwrites/extPoint.sc

Mirror x, reflecting across Y axis.

.mirrorY

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/MathLib/classes/SpherCoords/SystemOverwrites/extPoint.sc

Mirror y, reflecting across the X axis.

.mirrorO

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/MathLib/classes/SpherCoords/SystemOverwrites/extPoint.sc

Mirror across the origin.

Discussion:

A synonym for neg.

Conversion

.asPoint

Returns the receiver.

.asComplex

Returns a complex number with x as the real part and y as the imaginary part.

.asString(limit: 512)

From superclass: Object

Return a string representing the receiver.

.phi

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/MathLib/classes/SpherCoords/SystemOverwrites/extPoint.sc

Return the spherical coordinate elevation angle of the receiver.

Returns:

0

.asCartesian

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/MathLib/classes/SpherCoords/SystemOverwrites/extPoint.sc

Convert to Cartesian, with z = 0.

@(aValue)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/MathLib/classes/SpherCoords/SystemOverwrites/extPoint.sc

If aValue is Number, create a new Cartesian whose x coordinate is this.x, y coordinate is this.y and whose z coordinate is aValue. If aValue is a Point, create a new Rect.

Arguments:

aValue

Inherited instance methods

Undocumented instance methods

<(that, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

<=(that, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

>(that, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

>=(that, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.acos

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.asArray

.asControlInput

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.asFloat

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.asInt

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.asOSCArgEmbeddedArray(array)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.asPageLayout

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/crucial-library/deprecated-3.5.sc

.asPolar

.asRect

.asSVGPathSegment(type ... extra)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SVGFile/extVarious-SVGFile.sc

.asShortCS

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/GUI/ColPen/extPoint-asShortCS.sc

.asSize

.asUGenInput

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.asin

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.atan

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.biexp(inCenter, inMin, inMax, outCenter, outMin, outMax, clip: 'minmax')

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.bilin(inCenter, inMin, inMax, outCenter, outMin, outMax, clip: 'minmax')

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.bilinrand

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.binaryPerformOnEach(selector ... args)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.blend(that, blendfrac: 0.5)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SVGFile/extPoint-blend.sc

.ceil

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.clip(lo, hi)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.clip2(that, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.conjugate

From extension in /usr/local/share/SuperCollider/SCClassLibrary/DefaultLibrary/extNumber.sc

.cos

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.cosh

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.cubed

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.curvelin(inMin: 0, inMax: 1, outMin: 0, outMax: 1, curve: -4, clip: 'minmax')

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.distort

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.div(scale)

.excess(that, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.exp

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.expexp(inMin: 0.001, inMax: 1, outMin: 0.001, outMax: 1, clip: 'minmax')

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.explin(inMin: 0.001, inMax: 1, outMin: 0, outMax: 1, clip: 'minmax')

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.exprand(that, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.firstArg(that, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.flipY

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/adclib/Classes/GUI/extWinBounds.sc

.floor

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.fold(lo, hi)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.fold2(that, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.frac

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.lincurve(inMin: 0, inMax: 1, outMin: 0, outMax: 1, curve: -4, clip: 'minmax')

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.linexp(inMin: 0, inMax: 1, outMin: 0.001, outMax: 1, clip: 'minmax')

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.linlin(inMin: 0, inMax: 1, outMin: 0, outMax: 1, clip: 'minmax')

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.linrand

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.log

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.log10

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.log2

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.max(that: 0, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.min(that, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.mirrorTo(aPoint: 0)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/GUI/Drawing/extPen-addCurve.sc

.mirrorZ

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/MathLib/classes/SpherCoords/SystemOverwrites/extPoint.sc

.mod(that)

.neg

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.performBinaryOpOnSomething(aSelector, thing, adverb)

.performOnEach(selector ... args)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.plot

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/GUI/Plotting/extPlotPoint.sc

.pow(that, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.rand

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.rand2

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.reciprocal

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.roundUp(that: 1.0, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.rrand(that, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.scaleTranslate(scalePoint, deltaPoint)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/GUI/Drawing/extRect-transformations.sc

.sin

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.sinh

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.softclip

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.sqrt

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.squared

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.sum3rand

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.swap

From extension in /usr/local/share/SuperCollider/SCClassLibrary/DefaultLibrary/extNumber.sc

.tan

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.tanh

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.transformFromRect(rect, fromRect, keepRatio: false, scale: 1, move: 0.5)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/GUI/Drawing/extPen-transformToRect.sc

.transformToRect(rect, fromRect, keepRatio: false, scale: 1, move: 0.5)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/GUI/Drawing/extPen-transformToRect.sc

.translateScale(deltaPoint, scalePoint)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/GUI/Drawing/extRect-transformations.sc

.wrap(lo, hi)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.wrap2(that, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.xrand(that, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc

.xrand2(that, adverb)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/Various/extPoint-variousOps.sc