Lines Matching refs:rhs
86 plus(rhs: Point): Point {
87 return new Point(this.x + rhs.x, this.y + rhs.y)
89 subtract(rhs: Point): Point {
90 return new Point(this.x - rhs.x, this.y - rhs.y)
95 equals(rhs: Point): boolean {
96 return this.x === rhs.x && this.y === rhs.y
106 plus(rhs: PointVector): PointVector {
108 const len = Math.min(this.length, rhs.length)
110 result.push((this as Array<Point>)[i].plus((rhs as Array<Point>)[i]))
114 subtract(rhs: PointVector): PointVector {
116 const len = Math.min(this.length, rhs.length)
118 result.push((this as Array<Point>)[i].subtract((rhs as Array<Point>)[i]))
129 equals(rhs: PointVector): boolean {
130 if (this.length != rhs.length) {
134 if (!(this as Array<Point>)[i].equals((rhs as Array<Point>)[i])) {