MCPcopy
hub / github.com/directus/directus / from

Method from

app/src/utils/vector2.ts:63–65  ·  view source on GitHub ↗
(vector: { x: number; y: number })

Source from the content-addressed store, hash-verified

61 }
62
63 static from(vector: { x: number; y: number }) {
64 return new Vector2(vector.x, vector.y);
65 }
66
67 static fromMany(...vectors: { x: number; y: number }[]) {
68 return vectors.map(Vector2.from);

Callers 15

getLanguageFromEntriesFunction · 0.80
readableStreamToStringFunction · 0.80
fetchRolesTreeFunction · 0.80
index.test.tsFile · 0.80
getBucketMethod · 0.80
index.test.tsFile · 0.80
createStreamFunction · 0.80
getBasicAuthMethod · 0.80
writeMethod · 0.80
redis.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 9

createStreamFunction · 0.64
makeUsersFunction · 0.64
seedActiveAdminsFunction · 0.64
uploadFunction · 0.64
uploadToLocalFunction · 0.64
readFunction · 0.64
basicHeaderFunction · 0.64
bufferMessageFunction · 0.64