Exemplo n.º 1
0
        protected override Vector3 GetPointInternal(int pointIndex)
        {
            float angle = ((float)pointIndex / Resolution) * 2f * Mathf.PI;

            return(LineUtils.GetEllipsePoint(Radius.x, Radius.y, angle));
        }
Exemplo n.º 2
0
 protected override Vector3 GetPointInternal(float normalizedDistance)
 {
     return(LineUtils.GetEllipsePoint(Radius.x, Radius.y, normalizedDistance * 2f * Mathf.PI));
 }