Path class

Hello.

My question is about theory and C# classes available in Unity engine.

I need a class which can represent a path which can have two types:

  1. a straight path (a straight line);

  2. a quarter of a circle (a 45 degree part of a circular arc).

At first I thought that bezier curves would be good for this purpose, but then I found that bezier curves can not represent a circle due to their internal limitations. As far as I understand, Unity’s splines use bezier curves.

Does Unity provide any class or functionality to make paths similar to splines, but with the help of straights and circles ?

Thank you.