Beispiel #1
0
        /// <inheritdoc />
        protected override Vector3 GetPointInternal(int pointIndex)
        {
            float angle = ((float)pointIndex / resolution) * 2f * Mathf.PI;

            return(LineUtility.GetEllipsePoint(radius, angle));
        }
Beispiel #2
0
 /// <inheritdoc />
 protected override Vector3 GetPointInternal(float normalizedDistance)
 {
     return(LineUtility.GetEllipsePoint(radius, normalizedDistance * 2f * Mathf.PI));
 }