예제 #1
0
 public float DistanceSq(DirectedNode node) => math.distancesq(node.position, this.position);
예제 #2
0
 public Line LineTo(DirectedNode node) => new Line(this.position, node.position);
예제 #3
0
 public float3 Dir(DirectedNode node) => node.position - this.position;
예제 #4
0
 public float DistanceSq(DirectedNode node) => Dif(node).sqrMagnitude;
예제 #5
0
 public float Distance(DirectedNode node) => Vector3.Distance(node.position, this.position);
예제 #6
0
 public Vector3 Dif(DirectedNode node) => node.position - this.position;