gpml2pvjson
Version:
convert GPML (XML) to pvjson (json)
17 lines (16 loc) • 826 B
TypeScript
import { SmartPoint } from "../geom-utils";
import { PvjsonEdge, AttachablePoint, Orientation } from "../gpml2pvjson";
/**
* getOrientationOfHyperedgeStartPoint
*
* Get orientation of the start point of an edge that is attached to another
* edge.
*
* @param referencedEdge {PvjsonEdge}
* @param startPoint {Point}
* @param otherPoint {Point}
* @return {Orientation}
*/
export declare function getOrientationOfHyperedgeStartPoint(referencedEdge: PvjsonEdge, startPoint: AttachablePoint & SmartPoint, endPoint: AttachablePoint & SmartPoint): Orientation;
export declare const getOrientationOfHyperedgeEndPoint: (referencedEdge: PvjsonEdge, startPoint: AttachablePoint & SmartPoint, endPoint: AttachablePoint & SmartPoint) => Orientation;
export declare function validateOrientation(orientation: Orientation): boolean;