pimath 0.1.28 → 0.1.31

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.
@@ -1,5 +1,5 @@
1
1
  import { IAlgebra, IEquation, InputValue, IPiMathObject, ISolution, literalType } from '../pimath.interface';
2
- import { Fraction } from '../coefficients/fraction';
2
+ import { Fraction } from '../coefficients';
3
3
  import { Equation } from './equation';
4
4
  import { Polynom } from './polynom';
5
5
  export declare class LinearSystem implements IPiMathObject<LinearSystem>, IEquation<LinearSystem>, IAlgebra<LinearSystem> {
@@ -7,3 +7,4 @@ export * from './plane3';
7
7
  export * from './point';
8
8
  export * from './triangle';
9
9
  export * from './vector';
10
+ export * from './sphere3';
@@ -15,6 +15,7 @@ export declare class Plane3 {
15
15
  get c(): Fraction;
16
16
  get d(): Fraction;
17
17
  get tex(): string;
18
+ get display(): string;
18
19
  parse(config: Plane3Config): void;
19
20
  angle(vector: Vector, sharp?: boolean, radian?: boolean): number;
20
21
  angle(line: Line3, sharp?: boolean, radian?: boolean): number;
@@ -0,0 +1,34 @@
1
+ import { Point } from './point';
2
+ import { Fraction } from '../coefficients';
3
+ import { Equation } from '../algebra';
4
+ import { InputValue } from '../pimath.interface';
5
+ export declare enum SPHERE3_RELATIVE_POSITION {
6
+ INTERIOR = 0,
7
+ EXTERIOR = 1,
8
+ SECANT = 2,
9
+ TANGENT_INSIDE = 3,
10
+ TANGENT_OUTSIDE = 4,
11
+ SUPERPOSED = 5,
12
+ CONCENTRIC = 6
13
+ }
14
+ export declare class Sphere3 {
15
+ #private;
16
+ constructor(center?: Point, radius?: InputValue<Fraction>);
17
+ fromEquation(equation: Equation | string): this;
18
+ get center(): Point;
19
+ get squareRadius(): Fraction;
20
+ get radius(): {
21
+ tex: string;
22
+ display: string;
23
+ value: number;
24
+ };
25
+ get equation(): Equation;
26
+ makeUndefined(): this;
27
+ get centerRadius(): this;
28
+ get developped(): this;
29
+ get tex(): string;
30
+ get display(): string;
31
+ static RELATIVE_POSITION: typeof SPHERE3_RELATIVE_POSITION;
32
+ relativePosition: (S: Sphere3) => SPHERE3_RELATIVE_POSITION;
33
+ isPointOnSphere: (P: Point) => boolean;
34
+ }
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Fraction, NthRoot } from './coefficients';
2
2
  import { Equation, Factor, LinearSystem, LogicalSet, Monom, PolyFactor, Polynom } from './algebra';
3
- import { Circle, Line, Line3, Matrix, Plane3, Point, Triangle, Vector } from './geometry';
3
+ import { Circle, Line, Line3, Matrix, Plane3, Point, Triangle, Vector, Sphere3 } from './geometry';
4
4
  import { Numeric } from './numeric';
5
5
  import { NumExp } from 'piexpression';
6
6
  import { Random } from './randomization/random';
@@ -60,6 +60,7 @@ declare const PiMath: {
60
60
  Circle: typeof Circle;
61
61
  Line3: typeof Line3;
62
62
  Plane3: typeof Plane3;
63
+ Sphere3: typeof Sphere3;
63
64
  };
64
65
  NumExp: typeof NumExp;
65
66
  };