pub type Point = Vec2<f64>;
Expand description
2点間のユークリッド距離を求める
\|\boldsymbol{a} - \boldsymbol{b}\| = \sqrt{(a_x - b_x)^2 + (a_y - b_y)^2}
ノルムを求める
\|\boldsymbol{a}\| = \sqrt{a_x^2 + a_y^2}
法線ベクトル
(90度回転させたベクトル)
を求める
原点周りに $\theta
$ 回転させた点を求める
Converts to this type from the input type.
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.