Ellipse
References[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
Initializes a new ellipse from base plane and both principal radii.
Initializes a new ellipse from a center point and the two semi-axes intersections.
Parameters:
| center (Point3d) | A center for the ellipse. The average of the foci. |
| second (Point3d) | The intersection of the ellipse X axis with the ellipse itself. |
| third (Point3d) | A point that determines the radius along the Y semi-axis. If the point is at right angle with the (center - second point) vector, it will be the intersection of the ellipse Y axis with the ellipse itself. |
Properties
Gets the distance from the center to a focus.
Returns an indication of the validity of this ellipse.
Gets or sets the radius of the ellipse along the base plane X semi-axis.
Methods
Check that all values in other are within epsilon of the values in this
Implements: EpsilonEquals
Gets the foci. The foci are two points whose sum of distances from any point on the ellipse is always the same.
Constructs a nurbs curve representation of this ellipse.
This is equivalent to calling NurbsCurve.CreateFromEllipse().
Returns: A nurbs curve representation of this ellipse or null if no such representation could be made.
Attempt to fit an ellipse through a set of points.
Parameters:
| points (IEnumerable<Point3d>) | The points through which to fit. |
| ellipse (out Ellipse) | The resulting ellipse on success. |
Returns: true on success, false on failure.