@math.gl/culling
Advanced tools
Comparing version 3.6.1 to 3.6.2
@@ -1,6 +0,6 @@ | ||
export declare enum INTERSECTION { | ||
OUTSIDE = -1, | ||
INTERSECTING = 0, | ||
INSIDE = 1 | ||
} | ||
export declare const INTERSECTION: { | ||
readonly OUTSIDE: -1; | ||
readonly INTERSECTING: 0; | ||
readonly INSIDE: 1; | ||
}; | ||
//# sourceMappingURL=constants.d.ts.map |
@@ -7,10 +7,8 @@ "use strict"; | ||
exports.INTERSECTION = void 0; | ||
var INTERSECTION; | ||
var INTERSECTION = { | ||
OUTSIDE: -1, | ||
INTERSECTING: 0, | ||
INSIDE: 1 | ||
}; | ||
exports.INTERSECTION = INTERSECTION; | ||
(function (INTERSECTION) { | ||
INTERSECTION[INTERSECTION["OUTSIDE"] = -1] = "OUTSIDE"; | ||
INTERSECTION[INTERSECTION["INTERSECTING"] = 0] = "INTERSECTING"; | ||
INTERSECTION[INTERSECTION["INSIDE"] = 1] = "INSIDE"; | ||
})(INTERSECTION || (exports.INTERSECTION = INTERSECTION = {})); | ||
//# sourceMappingURL=constants.js.map |
@@ -1,8 +0,6 @@ | ||
export let INTERSECTION; | ||
(function (INTERSECTION) { | ||
INTERSECTION[INTERSECTION["OUTSIDE"] = -1] = "OUTSIDE"; | ||
INTERSECTION[INTERSECTION["INTERSECTING"] = 0] = "INTERSECTING"; | ||
INTERSECTION[INTERSECTION["INSIDE"] = 1] = "INSIDE"; | ||
})(INTERSECTION || (INTERSECTION = {})); | ||
export const INTERSECTION = { | ||
OUTSIDE: -1, | ||
INTERSECTING: 0, | ||
INSIDE: 1 | ||
}; | ||
//# sourceMappingURL=constants.js.map |
import { BoundingVolume } from './bounding-volume'; | ||
import { Vector3 } from '@math.gl/core'; | ||
import Plane from '../plane'; | ||
import { INTERSECTION } from '../../constants'; | ||
/** | ||
@@ -50,3 +49,3 @@ * An axis aligned bounding box - aligned with coordinate axes | ||
*/ | ||
intersectPlane(plane: Plane): INTERSECTION; | ||
intersectPlane(plane: Plane): number; | ||
/** Computes the estimated distance from the closest point on a bounding box to a point. */ | ||
@@ -53,0 +52,0 @@ distanceTo(point: readonly number[]): number; |
import { NumericArray, Vector3 } from '@math.gl/core'; | ||
import { INTERSECTION } from '../../constants'; | ||
import { BoundingVolume } from './bounding-volume'; | ||
@@ -38,4 +37,4 @@ import Plane from '../plane'; | ||
/** Determines which side of a plane a sphere is located. */ | ||
intersectPlane(plane: Plane): INTERSECTION; | ||
intersectPlane(plane: Plane): number; | ||
} | ||
//# sourceMappingURL=bounding-sphere.d.ts.map |
@@ -1,2 +0,1 @@ | ||
import { INTERSECTION } from '../../constants'; | ||
import Plane from '../plane'; | ||
@@ -28,4 +27,4 @@ /** | ||
*/ | ||
intersectPlane(plane: Plane): INTERSECTION; | ||
intersectPlane(plane: Plane): number; | ||
} | ||
//# sourceMappingURL=bounding-volume.d.ts.map |
@@ -5,3 +5,2 @@ import { Vector3, Matrix3, Matrix4, Quaternion } from '@math.gl/core'; | ||
import type Plane from '../plane'; | ||
import { INTERSECTION } from '../../constants'; | ||
/** | ||
@@ -36,3 +35,3 @@ * An OrientedBoundingBox of some object is a closed and convex cuboid. | ||
/** Determines which side of a plane the oriented bounding box is located. */ | ||
intersectPlane(plane: Plane): INTERSECTION; | ||
intersectPlane(plane: Plane): number; | ||
/** Computes the estimated distance from the closest point on a bounding box to a point. */ | ||
@@ -39,0 +38,0 @@ distanceTo(point: readonly number[]): number; |
@@ -1,2 +0,1 @@ | ||
import { INTERSECTION } from '../constants'; | ||
import Plane from './plane'; | ||
@@ -35,3 +34,3 @@ import type { BoundingVolume } from './bounding-volumes/bounding-volume'; | ||
/** Determines whether a bounding volume intersects the culling volume. */ | ||
computeVisibility(boundingVolume: BoundingVolume): INTERSECTION; | ||
computeVisibility(boundingVolume: BoundingVolume): number; | ||
/** | ||
@@ -38,0 +37,0 @@ * Determines whether a bounding volume intersects the culling volume. |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "3.6.1", | ||
"version": "3.6.2", | ||
"keywords": [ | ||
@@ -39,6 +39,6 @@ "webgl", | ||
"@babel/runtime": "^7.12.0", | ||
"@math.gl/core": "3.6.1", | ||
"@math.gl/core": "3.6.2", | ||
"gl-matrix": "^3.4.0" | ||
}, | ||
"gitHead": "1d356f92757adf26caab09abcb5fc424f11835c0" | ||
"gitHead": "517015873bbd7143bfc4bb761e70071c7a86771b" | ||
} |
// This file is derived from the Cesium math library under Apache 2 license | ||
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md | ||
export enum INTERSECTION { | ||
OUTSIDE = -1, // Represents that an object is not contained within the frustum. | ||
INTERSECTING = 0, // Represents that an object intersects one of the frustum's planes. | ||
INSIDE = 1 // Represents that an object is fully within the frustum. | ||
} | ||
export const INTERSECTION = { | ||
OUTSIDE: -1, // Represents that an object is not contained within the frustum. | ||
INTERSECTING: 0, // Represents that an object intersects one of the frustum's planes. | ||
INSIDE: 1 // Represents that an object is fully within the frustum. | ||
} as const; |
@@ -96,3 +96,3 @@ import {BoundingVolume} from './bounding-volume'; | ||
*/ | ||
intersectPlane(plane: Plane): INTERSECTION { | ||
intersectPlane(plane: Plane): number { | ||
const {halfDiagonal} = this; | ||
@@ -99,0 +99,0 @@ const normal = scratchNormal.from(plane.normal); |
@@ -130,3 +130,3 @@ // This file is derived from the Cesium math library under Apache 2 license | ||
/** Determines which side of a plane a sphere is located. */ | ||
intersectPlane(plane: Plane): INTERSECTION { | ||
intersectPlane(plane: Plane): number { | ||
const center = this.center; | ||
@@ -133,0 +133,0 @@ const radius = this.radius; |
@@ -31,3 +31,3 @@ import {INTERSECTION} from '../../constants'; | ||
*/ | ||
intersectPlane(plane: Plane): INTERSECTION; | ||
intersectPlane(plane: Plane): number; | ||
} |
@@ -123,3 +123,3 @@ // This file is derived from the Cesium math library under Apache 2 license | ||
/** Determines which side of a plane the oriented bounding box is located. */ | ||
intersectPlane(plane: Plane): INTERSECTION { | ||
intersectPlane(plane: Plane): number { | ||
const center = this.center; | ||
@@ -126,0 +126,0 @@ const normal = plane.normal; |
@@ -92,5 +92,5 @@ // This file is derived from the Cesium math library under Apache 2 license | ||
/** Determines whether a bounding volume intersects the culling volume. */ | ||
computeVisibility(boundingVolume: BoundingVolume): INTERSECTION { | ||
computeVisibility(boundingVolume: BoundingVolume): number { | ||
// const planes = this.planes; | ||
let intersect = INTERSECTION.INSIDE; | ||
let intersect: number = INTERSECTION.INSIDE; | ||
for (const plane of this.planes) { | ||
@@ -97,0 +97,0 @@ const result = boundingVolume.intersectPlane(plane); |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
465621
94
4943
+ Added@math.gl/core@3.6.2(transitive)
+ Added@math.gl/types@3.6.2(transitive)
- Removed@math.gl/core@3.6.1(transitive)
- Removed@math.gl/types@3.6.1(transitive)
Updated@math.gl/core@3.6.2