示例#1
0
        public Vector3 ToVector3(PolarContext3 context)
        {
            var p2d = new PolarCircular(r, theta).ToVector2();

            return(context.rotation * new Vector3(p2d.x, p2d.y, z) + context.polar);
        }
示例#2
0
 public Vector3 ToVector3(PolarContext3 context) => context.rotation * ToVector3() + context.polar;
示例#3
0
 public PolarCylindrical(Vector3 p, PolarContext3 context)
     : this(Quaternion.Inverse(context.rotation) * (p - context.polar), new PolarContext2(Vector2.zero, Mathf.Acos(context.rotation.w) * 2, context.isRightHanded))
 {
 }
示例#4
0
 public PolarSpherical(Vector3 p, PolarContext3 context) : this(p - context.polar, context.rotation)
 {
 }