Skip to content

Instantly share code, notes, and snippets.

View Dahausa's full-sized avatar
💭
I may be slow to respond.

Joern Dahausa

💭
I may be slow to respond.
  • Germany
View GitHub Profile
@Dahausa
Dahausa / new 1.js
Created March 16, 2021 09:57
Gist from API Documentation Editor
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