Api - measure Module
Index
Classes
Interfaces
Variables
Functions
- clone
Measure - get
Extreme Point - increase
- is
Angle Equal - is
Arc Concave Towards Point - is
Arc Overlapping - is
Between - is
Between Arc Angles - is
Between Points - is
Bezier Seed Linear - is
Line Overlapping - is
Measurement Overlapping - is
Path Equal - is
Point Equal - is
Point OnSlope - is
Slope Equal - line
Slope - model
Extents - path
Extents - path
Length - point
Distance
Variables
Private pathAreEqualMap
Private pathExtentsMap
Private pathLengthMap
Type declaration
-
[pathType: string]: function
-
-
Parameters
-
pathToMeasure: IPath
Returns number
-
-
-
Functions
Private cloneMeasure
Private getExtremePoint
-
Parameters
-
a: IPoint
-
b: IPoint
-
fn: IMathMinMax
Returns IPoint
-
increase
isAngleEqual
-
Find out if two angles are equal.
Parameters
-
angleA: number
First angle.
-
angleB: number
Second angle.
-
Default value accuracy: number = 0.0001
Returns boolean
true if angles are the same, false if they are not
-
isArcConcaveTowardsPoint
isArcOverlapping
isBetween
-
Check if a given number is between two given limits.
Parameters
-
valueInQuestion: number
The number to test.
-
limitA: number
First limit.
-
limitB: number
Second limit.
-
exclusive: boolean
Flag to exclude equaling the limits.
Returns boolean
Boolean true if value is between (or equal to) the limits.
-
isBetweenArcAngles
-
Check if a given angle is between an arc's start and end angles.
Parameters
-
angleInQuestion: number
The angle to test.
-
arc: IPathArc
Arc to test against.
-
exclusive: boolean
Flag to exclude equaling the start or end angles.
Returns boolean
Boolean true if angle is between (or equal to) the arc's start and end angles.
-
isBetweenPoints
-
Check if a given point is between a line's end points.
Parameters
-
pointInQuestion: IPoint
The point to test.
-
line: IPathLine
Line to test against.
-
exclusive: boolean
Flag to exclude equaling the origin or end points.
Returns boolean
Boolean true if point is between (or equal to) the line's origin and end points.
-
isBezierSeedLinear
-
Check if a given bezier seed is simply a line.
Parameters
-
seed: IPathBezierSeed
The bezier seed to test.
Returns boolean
Boolean true if bezier seed has control points on the line slope and between the line endpoints.
-
isLineOverlapping
isMeasurementOverlapping
isPathEqual
isPointEqual
isPointOnSlope
isSlopeEqual
lineSlope
modelExtents
pathExtents
pathLength
-
Measures the length of a path.
Parameters
-
pathToMeasure: IPath
The path to measure.
Returns number
Length of the path.
-
pointDistance
Generated using TypeDoc