11 lines
210 B
TypeScript
11 lines
210 B
TypeScript
|
|
class Vector3 {
|
||
|
|
public x: number;
|
||
|
|
public y: number;
|
||
|
|
public z: number;
|
||
|
|
|
||
|
|
constructor(x: number, y: number, z: number){
|
||
|
|
this.x = x;
|
||
|
|
this.y = y;
|
||
|
|
this.z = z;
|
||
|
|
}
|
||
|
|
}
|