示例#1
0
 /// <summary>
 /// 2Dベクトルの原点中心の回転を行います
 /// </summary>
 /// <param name="theta"></param>
 /// <returns></returns>
 public Pos Rotation2DVector(double theta)
 {
     return(new Pos(
                x * Cal.Cos(theta) - y * Cal.Sin(theta),
                x * Cal.Sin(theta) + y * Cal.Cos(theta)
                ));
 }
示例#2
0
 /// <summary>
 /// 回転
 /// </summary>
 public static Pos Rotation(double theta)
 {
     return(new Pos(Cal.Cos(theta), Cal.Sin(theta)));
 }