# Ellipse

class compas.geometry.Ellipse(plane, major, minor, **kwargs)[source]

Bases: Primitive

A ellipse is defined by a plane and a major and minor axis.

Parameters
• plane ([point, vector] | compas.geometry.Plane) – The plane of the ellipse.

• major (float) – The major of the ellipse.

• minor (float) – The minor of the ellipse.

Attributes

Examples

>>> from compas.geometry import Plane
>>> from compas.geometry import Ellipse
>>> plane = Plane([0, 0, 0], [0, 0, 1])
>>> ellipse = Ellipse(plane, 2, 1)


Methods

 from_data Construct a ellipse from its data representation. transform Transform the ellipse.

Inherited Methods

 copy Make an independent copy of the data object. from_json Construct an object from serialized data contained in a JSON file. from_jsonstring Construct an object from serialized data contained in a JSON string. to_data Convert an object to its native data representation. to_json Serialize the data representation of an object to a JSON file. to_jsonstring Serialize the data representation of an object to a JSON string. transformed Returns a transformed copy of this geometry. validate_data Validate the object's data against its data schema. validate_json Validate the object's data against its json schema.