@openhps/core
Version:
Open Hybrid Positioning System - Core component
37 lines (30 loc) • 801 B
text/typescript
import { SerializableObject, SerializableMember, NumberType } from '../../data/decorators';
import * as THREE from './_internal';
/**
* Serializable THREE.js Vector4
*/
export class Vector4 extends THREE.Vector4 {
x: number;
y: number;
z: number;
w: number;
static fromArray(array: number[]): Vector4 {
return new this().fromArray(array);
}
clone(): this {
return new (this.constructor as new () => this)().copy(this) as this;
}
}