This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Point } from 'yfiles'; | |
// Create a new point | |
const p1 = new Point(-5, 2) | |
// Create another point somewhere else | |
const p2 = new Point(23, 42) | |
console.log(`Point 1 is at (${p1.X},${p1.Y}), point 2 is at (${p2.X},${p2.y})`) | |
// Subtract one point from the other to get a vector between them |