(other)
| 1135 | return new Matrix3(matrix3add(this.ptr, other.ptr)); |
| 1136 | } |
| 1137 | sub(other) { |
| 1138 | if (typeof other === "number") { |
| 1139 | return new Matrix3(this.x.sub(other), this.y.sub(other), this.z.sub(other)); |
| 1140 | } |
| 1141 | return new Matrix3(matrix3sub(this.ptr, other.ptr)); |
| 1142 | } |
| 1143 | mul(other) { |
| 1144 | if (typeof other === "number") { |
| 1145 | return new Matrix3(this.x.mul(other), this.y.mul(other), this.z.mul(other)); |