aboutsummaryrefslogtreecommitdiff
path: root/src/Light.ts
blob: 58e4185d2ec8a33f3128069c8e28e94010252a3c (plain)
1
2
3
4
5
6
7
8
9
10
import {Type} from 'class-transformer';
import {Vector} from './Vector';

export class Light {
  @Type(() => Vector)
  readonly position: Vector;
  constructor(position: Vector, readonly intensity: number) {
    this.position = position;
  }
}