diff options
Diffstat (limited to 'src/Colour.ts')
| -rw-r--r-- | src/Colour.ts | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/Colour.ts b/src/Colour.ts deleted file mode 100644 index 3c9d8da..0000000 --- a/src/Colour.ts +++ /dev/null @@ -1,16 +0,0 @@ -import {Vector} from './Vector'; -import 'reflect-metadata'; - -export class Colour extends Vector { - constructor(readonly r: number, readonly g: number, readonly b: number) { - super(r, g, b); - } - - static fromVector(vector: Vector): Colour { - return new Colour(vector.x, vector.y, vector.z); - } - - toVector(): Vector { - return new Vector(this.r, this.g, this.b); - } -} |