Packages

final class Pt2 extends Vec2Like with ProdDbl2

A 2 dimensional point. It can be used to for translations of 2 dimensional points. Thanks to Rene Descarte for this.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Pt2
  2. ProdDbl2
  3. ProdHomo
  4. SpecialT
  5. Product2
  6. Product
  7. Equals
  8. Vec2Like
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Pt2(x: Double, y: Double)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(operand: Vec2): Pt2

    Add the operand Vec2 2D vector to this Pt2, returns a new Pt2.

  4. def -(operand: Vec2): Pt2

    Subtracts the operand Vec2 2D vector from this 2D point.

    Subtracts the operand Vec2 2D vector from this 2D point. Returns a new Pt2.

  5. def <<(startPt: Pt2): Vec2

    Subtracts the operand 2D point from this 2D point to get the relative Vector.

    Subtracts the operand 2D point from this 2D point to get the relative Vector. Returns a Vec2.

  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def >>(operand: Pt2): Vec2

    Subtracts this 2D point from the operand 2D point to get the relative Vector.

    Subtracts this 2D point from the operand 2D point to get the relative Vector. Returns a Vec2.

  8. def _1: Double
    Definition Classes
    Pt2 → Product2
    Annotations
    @inline()
  9. def _2: Double
    Definition Classes
    Pt2 → Product2
    Annotations
    @inline()
  10. def addX(adj: Double): Pt2
  11. def addXY(otherX: Double, otherY: Double): Pt2
  12. def addY(adj: Double): Pt2
  13. def angleFrom(operand: Pt2): Angle

    Gives the anlge from the operand point to this point.

  14. def angleTo(operand: Pt2): Angle

    Gives the angle from this point to the operand point.

  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def canEqual(other: Any): Boolean
    Definition Classes
    Pt2 → Equals
  17. def centreSquare(length: Double): PolygonImp
  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  19. def distTo(operand: Pt2): Double

    Gives the positive scalar distance between this and the operand Vec2.

  20. def dot(operand: Vec2Like): Double

    The dot product of this and the operand vector.

    The dot product of this and the operand vector.

    Definition Classes
    Vec2Like
    Annotations
    @inline()
  21. def doublesSeq: Seq[Double]
    Definition Classes
    Vec2Like
  22. def drawCross(armLength: Double, lineColour: Colour, lineWidth: Double): LinesDraw

    Not sure about this method

  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equals(other: Any): Boolean
    Definition Classes
    Pt2 → Equals → AnyRef → Any
  25. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. def invScale(divisor: Double): Pt2
    Annotations
    @inline()
  28. def invSlate(operand: Pt2): Pt2

    Changes the origin of the point to the new point.

    Changes the origin of the point to the new point. Subtracting the X and Y components of the operand point from this point.

  29. def inverseY: Pt2

    Reverses the y coordinate.

    Reverses the y coordinate. Useful for translating between canvases where the y axis measures down and coordinate systems where y is up

  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. def lineAlong(angle: Angle, magnitude: Double): LineSeg

    Line segment from this point to along the given angle for the given magnitude to point 2.

  32. def lineFrom(pt2: Pt2): LineSeg

    Line segment LineSeg from the parameter point to this point.

  33. def lineTo(pt2: Pt2): LineSeg

    Line segment LineSeg from this point to the parameter point.

  34. def linesCross(armLength: Double = 5): Seq[LineSeg]
  35. def mid(point2: Pt2): Pt2

    The average of this and the operand Pt2.

    The average of this and the operand Pt2. The mid point between this point and the operand second point.

  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. def negX: Pt2

    Reflects, mirrors along the Y axis by negating X.

  38. def negY: Pt2

    Reflects ,mirrors along the X axis by negating Y.

  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  41. def pp(z: Double): Pt3
  42. def productArity: Int
    Definition Classes
    Product2 → Product
  43. def productElement(n: Int): Any
    Definition Classes
    Product2 → Product
    Annotations
    @throws(classOf[java.lang.IndexOutOfBoundsException])
  44. def productElementName(n: Int): String
    Definition Classes
    Product
  45. def productElementNames: Iterator[String]
    Definition Classes
    Product
  46. def productIterator: Iterator[Any]
    Definition Classes
    Product
  47. def productPrefix: String
    Definition Classes
    Pt2 → Product
  48. def prolign(m: ProlignMatrix): Pt2
    Annotations
    @inline()
  49. def reflect(lineLike: LineLike): Pt2

    Reflects or mirrors this Vec2 across a line, returning new Vec2.

  50. def reflectXLine(line: XLine): Pt2

    Reflects, mirrors this Vec2 across an XLine.

  51. def reflectXParallel(yOffset: Double): Pt2

    Reflects, mirrors along the y = yOffset line that is parallel to the X axis.

  52. def reflectYLine(line: YLine): Pt2

    Reflects, mirrors this Vec2 across a YLine.

  53. def reflectYParallel(xOffset: Double): Pt2

    Reflects, mirrors along the x = xOffset line, that is parallel to the Y axis by negating X.

  54. def rotate(a: AngleVec): Pt2

    Rotates this vector through the given angle around the origin.

    Rotates this vector through the given angle around the origin.

    Definition Classes
    Pt2Vec2Like
  55. def rotate180: Pt2

    Rotates the vector 180 degrees or Pi radians.

    Rotates the vector 180 degrees or Pi radians.

    Definition Classes
    Pt2Vec2Like
    Annotations
    @inline()
  56. def rotate270: Pt2

    rotates the vector 90 degrees or Pi/2 radians, clockwise.

    rotates the vector 90 degrees or Pi/2 radians, clockwise.

    Definition Classes
    Pt2Vec2Like
    Annotations
    @inline()
  57. def rotate90: Pt2

    rotates the vector 90 degrees or Pi/2 radians, anticlockwise.

    rotates the vector 90 degrees or Pi/2 radians, anticlockwise.

    Definition Classes
    Pt2Vec2Like
    Annotations
    @inline()
  58. def rotateAbout(centre: Pt2, a: AngleVec): Pt2

    Rotates this vector through the given angle around the centre of rotation passed as the first parameter.

  59. def rotateRadians(r: Double): Pt2
  60. def scale(factor: Double): Pt2
    Definition Classes
    Pt2Vec2Like
    Annotations
    @inline()
  61. def slate(operand: Vec2Like): Pt2

    2D geometric translation transofrmation on this Pt2 returns a Pt2.

  62. def slate(xOperand: Double, yOperand: Double): Pt2

    2D geometric translation transofrmation on this Pt2 returns a Pt2.

  63. def str0: String
  64. def str1: String
  65. def str2: String
  66. def str3: String
  67. def strMod(f: (Double) => String): String
  68. def subX(adj: Double): Pt2
  69. def subXY(otherX: Double, otherY: Double): Pt2
  70. def subY(adj: Double): Pt2
  71. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  72. def textAt(str: String, fontSize: Int, fontColour: Colour = Colour.Black): TextGraphic
  73. def toDist2(factor: Dist): Dist2
    Annotations
    @inline()
  74. def toLatLong(radius: Double): LatLong

    Where xnd y is a map on the surface ofa sphere.

    Where xnd y is a map on the surface ofa sphere. Currently not working for angles greater than Pi / 2

  75. def toPair: (Double, Double)
    Definition Classes
    Vec2Like
  76. def toString(): String
    Definition Classes
    Pt2 → AnyRef → Any
  77. def toText(fontSize: Int = 10, fontColour: Colour = Colour.Black): TextGraphic
  78. def toTuple: (Double, Double)
  79. def toVec: Vec2

    Returns the Vec2 2D vector from the origin to this Pt2.

  80. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  81. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  82. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  83. val x: Double
    Definition Classes
    Pt2Vec2Like
  84. def xScale(factor: Double): Pt2
    Definition Classes
    Pt2Vec2Like
  85. def xShear(operand: Double): Pt2
  86. def xyScale(xOperand: Double, yOperand: Double): Pt2
    Definition Classes
    Pt2Vec2Like
  87. val y: Double
    Definition Classes
    Pt2Vec2Like
  88. def yScale(factor: Double): Pt2
    Definition Classes
    Pt2Vec2Like
  89. def yShear(operand: Double): Pt2

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from ProdDbl2

Inherited from ProdHomo

Inherited from SpecialT

Inherited from Product2[Double, Double]

Inherited from Product

Inherited from Equals

Inherited from Vec2Like

Inherited from AnyRef

Inherited from Any

Ungrouped