rc-js-util
Advanced tools
Comparing version 5.0.0-alpha.7 to 5.0.0-alpha.8
import { AXyRange } from "../xy-range/a-xy-range"; | ||
import type { EArrayTypeGuard } from "../../e-typed-array-guard"; | ||
import { TTypedArray } from "../../t-typed-array"; | ||
/** | ||
@@ -10,3 +10,3 @@ * @public | ||
*/ | ||
export declare abstract class AXyMargin<TArray extends EArrayTypeGuard> extends AXyRange<TArray> { | ||
export declare abstract class AXyMargin<TArray extends TTypedArray> extends AXyRange<TArray> { | ||
/** | ||
@@ -34,2 +34,2 @@ * left | ||
*/ | ||
export declare type TXyMarginF32 = AXyMargin<EArrayTypeGuard.F32>; | ||
export declare type TXyMarginF32 = AXyMargin<Float32Array>; |
@@ -5,3 +5,3 @@ import { XyRange } from "../xy-range/xy-range"; | ||
import { AXyRange } from "../xy-range/a-xy-range"; | ||
import type { EArrayTypeGuard } from "../../e-typed-array-guard"; | ||
import { TTypedArray } from "../../t-typed-array"; | ||
/** | ||
@@ -15,5 +15,5 @@ * @public | ||
*/ | ||
export declare class XyMargin<TArray extends EArrayTypeGuard> extends XyRange<TArray> { | ||
export declare class XyMargin<TArray extends TTypedArray> extends XyRange<TArray> { | ||
factory: ITypedArrayTupleFactory<AXyMargin<TArray>, TXyMarginCtorArgs>; | ||
static f32: XyMargin<EArrayTypeGuard.F32>; | ||
static f32: XyMargin<Float32Array>; | ||
protected constructor(factory: ITypedArrayTupleFactory<AXyMargin<TArray>, TXyMarginCtorArgs>); | ||
@@ -20,0 +20,0 @@ getLeft(position: Readonly<AXyMargin<TArray>>): number; |
import { AMat2 } from "../../mat2/a-mat2"; | ||
import type { EArrayTypeGuard } from "../../e-typed-array-guard"; | ||
import { TTypedArray } from "../../t-typed-array"; | ||
/** | ||
@@ -10,3 +10,3 @@ * @public | ||
*/ | ||
export declare abstract class AXyRange<TArray extends EArrayTypeGuard> extends AMat2<TArray> { | ||
export declare abstract class AXyRange<TArray extends TTypedArray> extends AMat2<TArray> { | ||
/** | ||
@@ -34,3 +34,3 @@ * xMin | ||
*/ | ||
export declare type TXyRangeF32 = AXyRange<EArrayTypeGuard.F32>; | ||
export declare type TXyRangeF64 = AXyRange<EArrayTypeGuard.F64>; | ||
export declare type TXyRangeF32 = AXyRange<Float32Array>; | ||
export declare type TXyRangeF64 = AXyRange<Float64Array>; |
import { ITypedArrayTupleFactory } from "../../i-typed-array-tuple-factory"; | ||
import { AXyRange } from "./a-xy-range"; | ||
import type { EArrayTypeGuard } from "../../e-typed-array-guard"; | ||
import { TTypedArray } from "../../t-typed-array"; | ||
/** | ||
@@ -12,6 +12,6 @@ * @public | ||
*/ | ||
export declare class XyRange<TArray extends EArrayTypeGuard> { | ||
export declare class XyRange<TArray extends TTypedArray> { | ||
factory: ITypedArrayTupleFactory<AXyRange<TArray>, TXyRangeCtorArgs>; | ||
static f32: XyRange<EArrayTypeGuard.F32>; | ||
static f64: XyRange<EArrayTypeGuard.F64>; | ||
static f32: XyRange<Float32Array>; | ||
static f64: XyRange<Float64Array>; | ||
protected constructor(factory: ITypedArrayTupleFactory<AXyRange<TArray>, TXyRangeCtorArgs>); | ||
@@ -18,0 +18,0 @@ setXMin(xyRange: AXyRange<TArray>, value: number): void; |
import { ATypedArrayTuple } from "../a-typed-array-tuple"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { TTypedArray } from "../t-typed-array"; | ||
/** | ||
@@ -10,3 +10,3 @@ * @public | ||
*/ | ||
export declare abstract class AMat2<TArray extends EArrayTypeGuard> extends ATypedArrayTuple<4> { | ||
export declare abstract class AMat2<TArray extends TTypedArray> extends ATypedArrayTuple<4> { | ||
/** | ||
@@ -35,3 +35,3 @@ * c1r1 | ||
*/ | ||
export declare type TMat2F32 = AMat2<EArrayTypeGuard.F32>; | ||
export declare type TMat2F64 = AMat2<EArrayTypeGuard.F64>; | ||
export declare type TMat2F32 = AMat2<Float32Array>; | ||
export declare type TMat2F64 = AMat2<Float64Array>; |
@@ -5,4 +5,3 @@ import { ITypedArrayTupleFactory } from "../i-typed-array-tuple-factory"; | ||
import { TMat2CtorArgs } from "./mat2"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
export declare class Mat2F32Factory<T extends AMat2<EArrayTypeGuard.F32>> extends AF32TupleFactory<T, TMat2CtorArgs> implements ITypedArrayTupleFactory<T, TMat2CtorArgs> { | ||
export declare class Mat2F32Factory<T extends AMat2<Float32Array>> extends AF32TupleFactory<T, TMat2CtorArgs> implements ITypedArrayTupleFactory<T, TMat2CtorArgs> { | ||
constructor(); | ||
@@ -9,0 +8,0 @@ createOne(c1r1: number, c1r2: number, c2r1: number, c2r2: number): T; |
import { ITypedArrayTupleFactory } from "../i-typed-array-tuple-factory"; | ||
import { AMat2 } from "./a-mat2"; | ||
import { TMat2CtorArgs } from "./mat2"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { AF64TupleFactory } from "../a-f64-tuple-factory"; | ||
export declare class Mat2F64Factory<T extends AMat2<EArrayTypeGuard.F64>> extends AF64TupleFactory<T, TMat2CtorArgs> implements ITypedArrayTupleFactory<T, TMat2CtorArgs> { | ||
export declare class Mat2F64Factory<T extends AMat2<Float64Array>> extends AF64TupleFactory<T, TMat2CtorArgs> implements ITypedArrayTupleFactory<T, TMat2CtorArgs> { | ||
constructor(); | ||
@@ -8,0 +7,0 @@ createOne(c1r1: number, c1r2: number, c2r1: number, c2r2: number): T; |
import { ITypedArrayTupleFactory } from "../i-typed-array-tuple-factory"; | ||
import { AMat2 } from "./a-mat2"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { TTypedArray } from "../t-typed-array"; | ||
/** | ||
@@ -12,6 +12,6 @@ * @public | ||
*/ | ||
export declare class Mat2<TArray extends EArrayTypeGuard> { | ||
export declare class Mat2<TArray extends TTypedArray> { | ||
factory: ITypedArrayTupleFactory<AMat2<TArray>, TMat2CtorArgs>; | ||
static f32: Mat2<EArrayTypeGuard.F32>; | ||
static f64: Mat2<EArrayTypeGuard.F64>; | ||
static f32: Mat2<Float32Array>; | ||
static f64: Mat2<Float64Array>; | ||
protected constructor(factory: ITypedArrayTupleFactory<AMat2<TArray>, TMat2CtorArgs>); | ||
@@ -18,0 +18,0 @@ createIdentityMatrix(): AMat2<TArray>; |
import { ATypedArrayTuple } from "../a-typed-array-tuple"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { TTypedArray } from "../t-typed-array"; | ||
/** | ||
@@ -10,3 +10,3 @@ * @public | ||
*/ | ||
export declare abstract class AMat3<TArray extends EArrayTypeGuard> extends ATypedArrayTuple<9> { | ||
export declare abstract class AMat3<TArray extends TTypedArray> extends ATypedArrayTuple<9> { | ||
/** | ||
@@ -55,2 +55,2 @@ * c1r1 | ||
*/ | ||
export declare type TMat3F32 = AMat3<EArrayTypeGuard.F32>; | ||
export declare type TMat3F32 = AMat3<Float32Array>; |
import { ITypedArrayTupleFactory } from "../i-typed-array-tuple-factory"; | ||
import { TMat3CtorArgs } from "./mat3"; | ||
import { AF32TupleFactory } from "../a-f32-tuple-factory"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { AMat3 } from "./a-mat3"; | ||
export declare class Mat3F32Factory<T extends AMat3<EArrayTypeGuard.F32>> extends AF32TupleFactory<T, TMat3CtorArgs> implements ITypedArrayTupleFactory<T, TMat3CtorArgs> { | ||
export declare class Mat3F32Factory<T extends AMat3<Float32Array>> extends AF32TupleFactory<T, TMat3CtorArgs> implements ITypedArrayTupleFactory<T, TMat3CtorArgs> { | ||
constructor(); | ||
createOne(c1r1: number, c2r1: number, c3r1: number, c1r2: number, c2r2: number, c3r2: number, c1r3: number, c2r3: number, c3r3: number): T; | ||
} |
import { ITypedArrayTupleFactory } from "../i-typed-array-tuple-factory"; | ||
import { AMat3 } from "./a-mat3"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { TTypedArray } from "../t-typed-array"; | ||
/** | ||
@@ -22,5 +22,5 @@ * @public | ||
*/ | ||
export declare class Mat3<TArray extends EArrayTypeGuard> { | ||
export declare class Mat3<TArray extends TTypedArray> { | ||
factory: ITypedArrayTupleFactory<AMat3<TArray>, TMat3CtorArgs>; | ||
static f32: Mat3<EArrayTypeGuard.F32>; | ||
static f32: Mat3<Float32Array>; | ||
protected constructor(factory: ITypedArrayTupleFactory<AMat3<TArray>, TMat3CtorArgs>); | ||
@@ -27,0 +27,0 @@ createIdentityMatrix(): AMat3<TArray>; |
import { ATypedArrayTuple } from "../a-typed-array-tuple"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { TTypedArray } from "../t-typed-array"; | ||
/** | ||
@@ -10,3 +10,3 @@ * @public | ||
*/ | ||
export declare abstract class AMat4<TArray extends EArrayTypeGuard> extends ATypedArrayTuple<16> { | ||
export declare abstract class AMat4<TArray extends TTypedArray> extends ATypedArrayTuple<16> { | ||
/** | ||
@@ -83,2 +83,2 @@ * c1r1 | ||
*/ | ||
export declare type TMat4 = AMat4<EArrayTypeGuard.F32>; | ||
export declare type TMat4 = AMat4<Float32Array>; |
@@ -5,6 +5,5 @@ import { ITypedArrayTupleFactory } from "../i-typed-array-tuple-factory"; | ||
import { AMat4 } from "./a-mat4"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
export declare class Mat4F32Factory<T extends AMat4<EArrayTypeGuard.F32>> extends AF32TupleFactory<T, TMat4CtorArgs> implements ITypedArrayTupleFactory<T, TMat4CtorArgs> { | ||
export declare class Mat4F32Factory<T extends AMat4<Float32Array>> extends AF32TupleFactory<T, TMat4CtorArgs> implements ITypedArrayTupleFactory<T, TMat4CtorArgs> { | ||
constructor(); | ||
createOne(c1r1: number, c2r1: number, c3r1: number, c4r1: number, c1r2: number, c2r2: number, c3r2: number, c4r2: number, c1r3: number, c2r3: number, c3r3: number, c4r3: number, c1r4: number, c2r4: number, c3r4: number, c4r4: number): T; | ||
} |
import { ITypedArrayTupleFactory } from "../i-typed-array-tuple-factory"; | ||
import { AMat4 } from "./a-mat4"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { TTypedArray } from "../t-typed-array"; | ||
/** | ||
@@ -29,5 +29,5 @@ * @public | ||
*/ | ||
export declare class Mat4<TArray extends EArrayTypeGuard> { | ||
export declare class Mat4<TArray extends TTypedArray> { | ||
factory: ITypedArrayTupleFactory<AMat4<TArray>, TMat4CtorArgs>; | ||
static f32: Mat4<EArrayTypeGuard.F32>; | ||
static f32: Mat4<Float32Array>; | ||
protected constructor(factory: ITypedArrayTupleFactory<AMat4<TArray>, TMat4CtorArgs>); | ||
@@ -34,0 +34,0 @@ createIdentityMatrix(): AMat4<TArray>; |
import { ATypedArrayTuple } from "../a-typed-array-tuple"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { TTypedArray } from "../t-typed-array"; | ||
/** | ||
@@ -10,3 +10,3 @@ * @public | ||
*/ | ||
export declare abstract class AVec2<TArray extends EArrayTypeGuard> extends ATypedArrayTuple<2> { | ||
export declare abstract class AVec2<TArray extends TTypedArray> extends ATypedArrayTuple<2> { | ||
/** | ||
@@ -27,2 +27,2 @@ * x | ||
*/ | ||
export declare type TVec2F32 = AVec2<EArrayTypeGuard.F32>; | ||
export declare type TVec2F32 = AVec2<Float32Array>; |
import { ITypedArrayTupleFactory } from "../i-typed-array-tuple-factory"; | ||
import { AF32TupleFactory } from "../a-f32-tuple-factory"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { AVec2 } from "./a-vec2"; | ||
import { TVec2CtorArgs } from "./vec2"; | ||
export declare class Vec2F32Factory<T extends AVec2<EArrayTypeGuard.F32>> extends AF32TupleFactory<T, TVec2CtorArgs> implements ITypedArrayTupleFactory<T, TVec2CtorArgs> { | ||
export declare class Vec2F32Factory<T extends AVec2<Float32Array>> extends AF32TupleFactory<T, TVec2CtorArgs> implements ITypedArrayTupleFactory<T, TVec2CtorArgs> { | ||
constructor(); | ||
@@ -8,0 +7,0 @@ createOne(x: number, y: number): T; |
import { AVec2 } from "./a-vec2"; | ||
import { ITypedArrayTupleFactory } from "../i-typed-array-tuple-factory"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { AMat3 } from "../mat3/a-mat3"; | ||
import { TTypedArray } from "../t-typed-array"; | ||
/** | ||
@@ -13,15 +13,15 @@ * @public | ||
*/ | ||
export declare class Vec2<TTypedArray extends EArrayTypeGuard> { | ||
readonly factory: ITypedArrayTupleFactory<AVec2<TTypedArray>, TVec2CtorArgs>; | ||
static f32: Vec2<EArrayTypeGuard.F32>; | ||
protected constructor(factory: ITypedArrayTupleFactory<AVec2<TTypedArray>, TVec2CtorArgs>); | ||
getX(vec: Readonly<AVec2<TTypedArray>>): number; | ||
getY(vec: Readonly<AVec2<TTypedArray>>): number; | ||
update(vec: AVec2<TTypedArray>, x: number, y: number): void; | ||
setX(vec: AVec2<TTypedArray>, x: number): void; | ||
setY(vec: AVec2<TTypedArray>, y: number): void; | ||
add(a: Readonly<AVec2<TTypedArray>>, b: Readonly<AVec2<TTypedArray>>, result: AVec2<TTypedArray>): void; | ||
dotProduct(a: Readonly<AVec2<TTypedArray>>, b: Readonly<AVec2<TTypedArray>>, result?: AVec2<TTypedArray>): AVec2<TTypedArray>; | ||
mat3Multiply(a: Readonly<AMat3<EArrayTypeGuard>>, b: Readonly<AVec2<TTypedArray>>, result?: AVec2<TTypedArray>): AVec2<TTypedArray>; | ||
getLoggableValue(value: Readonly<AVec2<TTypedArray>>): number[][]; | ||
export declare class Vec2<TArray extends TTypedArray> { | ||
readonly factory: ITypedArrayTupleFactory<AVec2<TArray>, TVec2CtorArgs>; | ||
static f32: Vec2<Float32Array>; | ||
protected constructor(factory: ITypedArrayTupleFactory<AVec2<TArray>, TVec2CtorArgs>); | ||
getX(vec: Readonly<AVec2<TArray>>): number; | ||
getY(vec: Readonly<AVec2<TArray>>): number; | ||
update(vec: AVec2<TArray>, x: number, y: number): void; | ||
setX(vec: AVec2<TArray>, x: number): void; | ||
setY(vec: AVec2<TArray>, y: number): void; | ||
add(a: Readonly<AVec2<TArray>>, b: Readonly<AVec2<TArray>>, result: AVec2<TArray>): void; | ||
dotProduct(a: Readonly<AVec2<TArray>>, b: Readonly<AVec2<TArray>>, result?: AVec2<TArray>): AVec2<TArray>; | ||
mat3Multiply(a: Readonly<AMat3<TArray>>, b: Readonly<AVec2<TArray>>, result?: AVec2<TArray>): AVec2<TArray>; | ||
getLoggableValue(value: Readonly<AVec2<TArray>>): number[][]; | ||
} |
import { ATypedArrayTuple } from "../a-typed-array-tuple"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { TTypedArray } from "../t-typed-array"; | ||
/** | ||
@@ -10,3 +10,3 @@ * @public | ||
*/ | ||
export declare abstract class AVec3<TArray extends EArrayTypeGuard> extends ATypedArrayTuple<3> { | ||
export declare abstract class AVec3<TArray extends TTypedArray> extends ATypedArrayTuple<3> { | ||
/** | ||
@@ -31,2 +31,2 @@ * x | ||
*/ | ||
export declare type TVec3F32 = AVec3<EArrayTypeGuard.F32>; | ||
export declare type TVec3F32 = AVec3<Float32Array>; |
import { ITypedArrayTupleFactory } from "../i-typed-array-tuple-factory"; | ||
import { AF32TupleFactory } from "../a-f32-tuple-factory"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { AVec3 } from "./a-vec3"; | ||
import { TVec3CtorArgs } from "./vec3"; | ||
export declare class Vec3F32Factory<T extends AVec3<EArrayTypeGuard.F32>> extends AF32TupleFactory<T, TVec3CtorArgs> implements ITypedArrayTupleFactory<T, TVec3CtorArgs> { | ||
import { TTypedArray } from "../t-typed-array"; | ||
export declare class Vec3F32Factory<T extends AVec3<TTypedArray>> extends AF32TupleFactory<T, TVec3CtorArgs> implements ITypedArrayTupleFactory<T, TVec3CtorArgs> { | ||
constructor(); | ||
@@ -8,0 +8,0 @@ createOne(x: number, y: number, z: number): T; |
import { AVec3 } from "./a-vec3"; | ||
import { ITypedArrayTupleFactory } from "../i-typed-array-tuple-factory"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { AMat3 } from "../mat3/a-mat3"; | ||
import { TTypedArray } from "../t-typed-array"; | ||
/** | ||
@@ -13,16 +13,16 @@ * @public | ||
*/ | ||
export declare class Vec3<TTypedArray extends EArrayTypeGuard> { | ||
readonly factory: ITypedArrayTupleFactory<AVec3<TTypedArray>, TVec3CtorArgs>; | ||
static f32: Vec3<EArrayTypeGuard.F32>; | ||
protected constructor(factory: ITypedArrayTupleFactory<AVec3<TTypedArray>, TVec3CtorArgs>); | ||
getX(vec: Readonly<AVec3<TTypedArray>>): number; | ||
getY(vec: Readonly<AVec3<TTypedArray>>): number; | ||
getZ(vec: Readonly<AVec3<TTypedArray>>): number; | ||
update(vec: AVec3<TTypedArray>, x: number, y: number, z: number): void; | ||
setX(vec: AVec3<TTypedArray>, x: number): void; | ||
setY(vec: AVec3<TTypedArray>, y: number): void; | ||
setZ(vec: AVec3<TTypedArray>, z: number): void; | ||
getMat3MultiplyX(a: Readonly<AMat3<EArrayTypeGuard>>, x: number): number; | ||
getMat3MultiplyY(a: Readonly<AMat3<EArrayTypeGuard>>, y: number): number; | ||
getLoggableValue(value: Readonly<AVec3<TTypedArray>>): number[][]; | ||
export declare class Vec3<TArray extends TTypedArray> { | ||
readonly factory: ITypedArrayTupleFactory<AVec3<TArray>, TVec3CtorArgs>; | ||
static f32: Vec3<Float32Array>; | ||
protected constructor(factory: ITypedArrayTupleFactory<AVec3<TArray>, TVec3CtorArgs>); | ||
getX(vec: Readonly<AVec3<TArray>>): number; | ||
getY(vec: Readonly<AVec3<TArray>>): number; | ||
getZ(vec: Readonly<AVec3<TArray>>): number; | ||
update(vec: AVec3<TArray>, x: number, y: number, z: number): void; | ||
setX(vec: AVec3<TArray>, x: number): void; | ||
setY(vec: AVec3<TArray>, y: number): void; | ||
setZ(vec: AVec3<TArray>, z: number): void; | ||
getMat3MultiplyX(a: Readonly<AMat3<TTypedArray>>, x: number): number; | ||
getMat3MultiplyY(a: Readonly<AMat3<TTypedArray>>, y: number): number; | ||
getLoggableValue(value: Readonly<AVec3<TArray>>): number[][]; | ||
} |
import { ATypedArrayTuple } from "../a-typed-array-tuple"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { TTypedArray } from "../t-typed-array"; | ||
/** | ||
@@ -10,3 +10,3 @@ * @public | ||
*/ | ||
export declare abstract class AVec4<TArray extends EArrayTypeGuard> extends ATypedArrayTuple<4> { | ||
export declare abstract class AVec4<TArray extends TTypedArray> extends ATypedArrayTuple<4> { | ||
/** | ||
@@ -35,2 +35,2 @@ * x | ||
*/ | ||
export declare type TVec4F32 = AVec4<EArrayTypeGuard.F32>; | ||
export declare type TVec4F32 = AVec4<Float32Array>; |
@@ -5,4 +5,3 @@ import { ITypedArrayTupleFactory } from "../i-typed-array-tuple-factory"; | ||
import { TVec4CtorArgs } from "./vec4"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
export declare class Vec4F32Factory<T extends AVec4<EArrayTypeGuard.F32>> extends AF32TupleFactory<T, TVec4CtorArgs> implements ITypedArrayTupleFactory<T, TVec4CtorArgs> { | ||
export declare class Vec4F32Factory<T extends AVec4<Float32Array>> extends AF32TupleFactory<T, TVec4CtorArgs> implements ITypedArrayTupleFactory<T, TVec4CtorArgs> { | ||
constructor(); | ||
@@ -9,0 +8,0 @@ createOne(x: number, y: number, z: number, w: number): T; |
import { AVec4 } from "./a-vec4"; | ||
import { ITypedArrayTupleFactory } from "../i-typed-array-tuple-factory"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { TTypedArray } from "../t-typed-array"; | ||
/** | ||
@@ -12,16 +12,16 @@ * @public | ||
*/ | ||
export declare class Vec4<TTypedArray extends EArrayTypeGuard> { | ||
readonly factory: ITypedArrayTupleFactory<AVec4<TTypedArray>, TVec4CtorArgs>; | ||
static f32: Vec4<EArrayTypeGuard.F32>; | ||
protected constructor(factory: ITypedArrayTupleFactory<AVec4<TTypedArray>, TVec4CtorArgs>); | ||
getX(vec: Readonly<AVec4<TTypedArray>>): number; | ||
getY(vec: Readonly<AVec4<TTypedArray>>): number; | ||
getZ(vec: Readonly<AVec4<TTypedArray>>): number; | ||
getW(vec: Readonly<AVec4<TTypedArray>>): number; | ||
update(vec: AVec4<TTypedArray>, x: number, y: number, z: number, w: number): void; | ||
setX(vec: AVec4<TTypedArray>, x: number): void; | ||
setY(vec: AVec4<TTypedArray>, y: number): void; | ||
setZ(vec: AVec4<TTypedArray>, z: number): void; | ||
setW(vec: AVec4<TTypedArray>, w: number): void; | ||
getLoggableValue(value: Readonly<AVec4<TTypedArray>>): number[][]; | ||
export declare class Vec4<TArray extends TTypedArray> { | ||
readonly factory: ITypedArrayTupleFactory<AVec4<TArray>, TVec4CtorArgs>; | ||
static f32: Vec4<Float32Array>; | ||
protected constructor(factory: ITypedArrayTupleFactory<AVec4<TArray>, TVec4CtorArgs>); | ||
getX(vec: Readonly<AVec4<TArray>>): number; | ||
getY(vec: Readonly<AVec4<TArray>>): number; | ||
getZ(vec: Readonly<AVec4<TArray>>): number; | ||
getW(vec: Readonly<AVec4<TArray>>): number; | ||
update(vec: AVec4<TArray>, x: number, y: number, z: number, w: number): void; | ||
setX(vec: AVec4<TArray>, x: number): void; | ||
setY(vec: AVec4<TArray>, y: number): void; | ||
setZ(vec: AVec4<TArray>, z: number): void; | ||
setW(vec: AVec4<TArray>, w: number): void; | ||
getLoggableValue(value: Readonly<AVec4<TArray>>): number[][]; | ||
} |
@@ -18,3 +18,2 @@ export { IDebugWeakStore, IDebugSharedObject, IDebugSharedObjectLifeCycleChecks, TDebugListener, IDebugProtectedView, IDebugWeakBroadcastEvent } from "rc-js-util-globals/index"; | ||
export { TGetComparisonValueAtIndex } from "./array/impl/binary-find-insertion-index"; | ||
export { EArrayTypeGuard } from "./array/typed-array/e-typed-array-guard"; | ||
export { TTypedArrayCtor } from "./array/typed-array/t-typed-array-ctor"; | ||
@@ -21,0 +20,0 @@ export { ATypedArrayTuple } from "./array/typed-array/a-typed-array-tuple"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.arrayForEach = exports.arrayFlatMap = exports.arrayEmptyArray = exports.arrayCopyInto = exports.arrayCompactMap = exports.arrayCompact = exports.arrayCollect = exports.arrayBinaryLastIndexOf = exports.arrayBinaryIndexOf = exports.SharedStaticArray = exports.SharedArray = exports.getEmscriptenWrapper = exports.AReferenceCounted = exports.ASharedObject = exports.BroadcastEvent = exports.ECircularStackOverflowMode = exports.CircularFIFOStack = exports.CircularBuffer = exports.Vec4 = exports.AVec4 = exports.Vec3 = exports.AVec3 = exports.Vec2 = exports.AVec2 = exports.Mat4 = exports.AMat4 = exports.Mat3 = exports.AMat3 = exports.Mat2 = exports.AMat2 = exports.XyRange = exports.AXyRange = exports.XyMargin = exports.AXyMargin = exports.ATypedArrayTuple = exports.EArrayTypeGuard = exports._String = exports._Set = exports._RegExp = exports._Path = exports._Number = exports._Math = exports._Map = exports._Fp = exports._Production = exports._Dictionary = exports.debugFlags = exports._Debug = exports._Array = exports.RcJsUtilDebugImpl = void 0; | ||
exports.stringNormalizeNullUndefinedToEmpty = exports.stringNormalizeEmptyToUndefined = exports.setValuesToArray = exports.regexEscapeRegex = exports.pathJoin = exports.numberGetHexString = exports.mathMin = exports.mathMax = exports.mathBoundRandom = exports.mathBound = exports.mapValuesToArray = exports.mapPush = exports.mapKeysToArray = exports.mapInitializeGet = exports.mapFirstValue = exports.mapFirstKey = exports.mapArrayMap = exports.promiseRejectNull = exports.promiseRejectFalsey = exports.fpValueOrNull = exports.fpOnce = exports.fpNormalizeToUndefined = exports.fpNormalizeToNull = exports.fpNoOp = exports.fpMaybeNewValue = exports.fpIdentity = exports.dictionaryValues = exports.dictionaryPush = exports.dictionaryPairs = exports.dictionaryForEach = exports.dictionaryExtend = exports.dictionaryCloneExtend = exports.arrayUnion = exports.arrayReplaceOne = exports.arrayRemoveOne = exports.arrayRemoveMany = exports.arrayPushUnique = exports.arrayNormalizeNullUndefinedToEmpty = exports.arrayNormalizeEmptyToUndefined = exports.arrayContains = exports.arrayMap = exports.arrayMapRange = exports.arrayLast = exports.arrayIsArray = exports.arrayIntersect = exports.arrayInsertAtIndex = exports.arrayIndex = exports.arrayGenerateRange = void 0; | ||
exports.arrayGenerateRange = exports.arrayForEach = exports.arrayFlatMap = exports.arrayEmptyArray = exports.arrayCopyInto = exports.arrayCompactMap = exports.arrayCompact = exports.arrayCollect = exports.arrayBinaryLastIndexOf = exports.arrayBinaryIndexOf = exports.SharedStaticArray = exports.SharedArray = exports.getEmscriptenWrapper = exports.AReferenceCounted = exports.ASharedObject = exports.BroadcastEvent = exports.ECircularStackOverflowMode = exports.CircularFIFOStack = exports.CircularBuffer = exports.Vec4 = exports.AVec4 = exports.Vec3 = exports.AVec3 = exports.Vec2 = exports.AVec2 = exports.Mat4 = exports.AMat4 = exports.Mat3 = exports.AMat3 = exports.Mat2 = exports.AMat2 = exports.XyRange = exports.AXyRange = exports.XyMargin = exports.AXyMargin = exports.ATypedArrayTuple = exports._String = exports._Set = exports._RegExp = exports._Path = exports._Number = exports._Math = exports._Map = exports._Fp = exports._Production = exports._Dictionary = exports.debugFlags = exports._Debug = exports._Array = exports.RcJsUtilDebugImpl = void 0; | ||
exports.stringNormalizeNullUndefinedToEmpty = exports.stringNormalizeEmptyToUndefined = exports.setValuesToArray = exports.regexEscapeRegex = exports.pathJoin = exports.numberGetHexString = exports.mathMin = exports.mathMax = exports.mathBoundRandom = exports.mathBound = exports.mapValuesToArray = exports.mapPush = exports.mapKeysToArray = exports.mapInitializeGet = exports.mapFirstValue = exports.mapFirstKey = exports.mapArrayMap = exports.promiseRejectNull = exports.promiseRejectFalsey = exports.fpValueOrNull = exports.fpOnce = exports.fpNormalizeToUndefined = exports.fpNormalizeToNull = exports.fpNoOp = exports.fpMaybeNewValue = exports.fpIdentity = exports.dictionaryValues = exports.dictionaryPush = exports.dictionaryPairs = exports.dictionaryForEach = exports.dictionaryExtend = exports.dictionaryCloneExtend = exports.arrayUnion = exports.arrayReplaceOne = exports.arrayRemoveOne = exports.arrayRemoveMany = exports.arrayPushUnique = exports.arrayNormalizeNullUndefinedToEmpty = exports.arrayNormalizeEmptyToUndefined = exports.arrayContains = exports.arrayMap = exports.arrayMapRange = exports.arrayLast = exports.arrayIsArray = exports.arrayIntersect = exports.arrayInsertAtIndex = exports.arrayIndex = void 0; | ||
var debug_namepace_1 = require("./debug/debug-namepace"); | ||
@@ -33,4 +33,2 @@ Object.defineProperty(exports, "RcJsUtilDebugImpl", { enumerable: true, get: function () { return debug_namepace_1.RcJsUtilDebugImpl; } }); | ||
Object.defineProperty(exports, "_String", { enumerable: true, get: function () { return _string_1._String; } }); | ||
var e_typed_array_guard_1 = require("./array/typed-array/e-typed-array-guard"); | ||
Object.defineProperty(exports, "EArrayTypeGuard", { enumerable: true, get: function () { return e_typed_array_guard_1.EArrayTypeGuard; } }); | ||
var a_typed_array_tuple_1 = require("./array/typed-array/a-typed-array-tuple"); | ||
@@ -37,0 +35,0 @@ Object.defineProperty(exports, "ATypedArrayTuple", { enumerable: true, get: function () { return a_typed_array_tuple_1.ATypedArrayTuple; } }); |
@@ -12,3 +12,3 @@ import { ATypedArrayTuple } from "../array/typed-array/a-typed-array-tuple"; | ||
* const vec4 = Vec4.f32.factory.createOneEmpty(); | ||
* type TVec4I32 = AVec4<EArrayTypeGuard.I32>; | ||
* type TVec4I32 = AVec4<TTypedArray.I32>; | ||
* const ivec4: TVec4I32 = vec4 as TTypedArrayCast<TVec4I32> as TVec4I32; | ||
@@ -15,0 +15,0 @@ * ``` |
{ | ||
"name": "rc-js-util", | ||
"version": "5.0.0-alpha.7", | ||
"version": "5.0.0-alpha.8", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
453861
472
6189