# Ellipse struct

Namespace: [Rhino.Geometry](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.geometry.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
[StructLayout(LayoutKind.Sequential, Pack = 8, Size = 144)]
[Serializable]
public struct Ellipse : IEpsilonComparable<Ellipse>, ICloneable
```

Represents the values of a plane and the two semi-axes radii in an ellipse.

## Constructors

- [Ellipse](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.ellipse/ctor.md): (2 overloads) Initializes a new ellipse from base plane and both principal radii.

## Properties

- [Center](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.ellipse/center.md): Gets or sets the center of the ellipse.
- [FocalDistance](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.ellipse/focaldistance.md): Gets the distance from the center to a focus.
- [IsValid](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.ellipse/isvalid.md): Returns an indication of the validity of this ellipse.
- [Plane](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.ellipse/plane.md): Gets or sets the base plane of the ellipse.
- [Radius1](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.ellipse/radius1.md): Gets or sets the radius of the ellipse along the base plane X semi-axis.
- [Radius2](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.ellipse/radius2.md): Gets or sets the radius of the ellipse along the base plane Y semi-axis.

## Methods

- [EpsilonEquals](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.ellipse/epsilonequals.md): Check that all values in other are within epsilon of the values in this
- [GetFoci](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.ellipse/getfoci.md): Gets the foci. The foci are two points whose sum of distances from any point on the ellipse is always the same.
- [ICloneable.Clone](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.ellipse/system-icloneable-clone.md)
- [ToNurbsCurve](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.ellipse/tonurbscurve.md): Constructs a nurbs curve representation of this ellipse. This is equivalent to calling NurbsCurve.CreateFromEllipse().
- [TryFitEllipseToPoints](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.ellipse/tryfitellipsetopoints.md): (static) Attempt to fit an ellipse through a set of points.
