@vertexvis/geometry 0.20.1-testing.1 → 0.20.2-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,6 +50,27 @@ export declare function negate(pt: Point): Point;
50
50
  * factors.
51
51
  */
52
52
  export declare function scale(pt: Point, scaleX: number, scaleY: number): Point;
53
+ /**
54
+ * Returns a new `Point` where `x` and `y` are multiplied by the given scale
55
+ * factor.
56
+ */
57
+ export declare function scaleProportional(pt: Point, scale: number): Point;
58
+ /**
59
+ * Returns the magnitude of a point.
60
+ */
61
+ export declare function magnitude(pt: Point): number;
62
+ /**
63
+ * Transforms a vector into the corresponding normal (unit) vector.
64
+ */
65
+ export declare function normalizeVector(pt: Point): Point;
66
+ /**
67
+ * Returns a new normal (unit) vector pointing between the two given points.
68
+ */
69
+ export declare function normalDirectionVector(ptA: Point, ptB: Point): Point;
70
+ /**
71
+ * Returns a vector orthogonal to the vector between the two given points.
72
+ */
73
+ export declare function orthogonalVector(ptA: Point, ptB: Point): Point;
53
74
  /**
54
75
  * Parses a JSON string representation of a Point and returns an object.
55
76
  *
package/dist/point.d.ts CHANGED
@@ -50,6 +50,27 @@ export declare function negate(pt: Point): Point;
50
50
  * factors.
51
51
  */
52
52
  export declare function scale(pt: Point, scaleX: number, scaleY: number): Point;
53
+ /**
54
+ * Returns a new `Point` where `x` and `y` are multiplied by the given scale
55
+ * factor.
56
+ */
57
+ export declare function scaleProportional(pt: Point, scale: number): Point;
58
+ /**
59
+ * Returns the magnitude of a point.
60
+ */
61
+ export declare function magnitude(pt: Point): number;
62
+ /**
63
+ * Transforms a vector into the corresponding normal (unit) vector.
64
+ */
65
+ export declare function normalizeVector(pt: Point): Point;
66
+ /**
67
+ * Returns a new normal (unit) vector pointing between the two given points.
68
+ */
69
+ export declare function normalDirectionVector(ptA: Point, ptB: Point): Point;
70
+ /**
71
+ * Returns a vector orthogonal to the vector between the two given points.
72
+ */
73
+ export declare function orthogonalVector(ptA: Point, ptB: Point): Point;
53
74
  /**
54
75
  * Parses a JSON string representation of a Point and returns an object.
55
76
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertexvis/geometry",
3
- "version": "0.20.1-testing.1",
3
+ "version": "0.20.2-canary.1",
4
4
  "description": "Library for 2D and 3D geometric types.",
5
5
  "license": "MIT",
6
6
  "author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",
@@ -40,7 +40,7 @@
40
40
  "@types/jest": "^27.5.1",
41
41
  "@vertexvis/eslint-config-vertexvis-typescript": "^0.5.0",
42
42
  "@vertexvis/jest-config-vertexvis": "^0.5.4",
43
- "@vertexwebsdk/build": "0.20.1-testing.1",
43
+ "@vertexwebsdk/build": "0.20.2-canary.1",
44
44
  "eslint": "^8.17.0",
45
45
  "jest": "^27.5.1",
46
46
  "rollup": "^2.75.6",
@@ -51,5 +51,5 @@
51
51
  "peerDependencies": {
52
52
  "tslib": ">=2.1.0"
53
53
  },
54
- "gitHead": "4fc3980469a6abc8d4ca0bc0045d752c8ad32916"
54
+ "gitHead": "81b7efb123b8094c44d3e7879ccc5879e9c0760d"
55
55
  }