Parasol Framework
  • Gallery
  • API
  • Wiki
  • GitHub
    • Audio
    • Core
    • Display
    • Fluid
    • Font
    • Network
    • Vector
    • Audio
    • Sound
    • File
    • MetaClass
    • Module
    • StorageDevice
    • Task
    • Thread
    • Time
    • Compression
    • Config
    • Script
    • XML
    • Controller
    • BlurFX
    • ColourFX
    • CompositeFX
    • ConvolveFX
    • DisplacementFX
    • FilterEffect
    • FloodFX
    • ImageFX
    • LightingFX
    • MergeFX
    • MorphologyFX
    • OffsetFX
    • RemapFX
    • SourceFX
    • TurbulenceFX
    • WaveFunctionFX
    • Scintilla
    • ScintillaSearch
    • Bitmap
    • Clipboard
    • Display
    • Document
    • Font
    • Picture
    • Pointer
    • Surface
    • SVG
    • ClientSocket
    • HTTP
    • NetSocket
    • Proxy
    • Vector
    • VectorClip
    • VectorColour
    • VectorEllipse
    • VectorFilter
    • VectorGradient
    • VectorGroup
    • VectorImage
    • VectorPath
    • VectorPattern
    • VectorPolygon
    • VectorRectangle
    • VectorScene
    • VectorShape
    • VectorSpiral
    • VectorText
    • VectorTransition
    • VectorViewport
    • VectorWave

VectorEllipse Class

Extends the Vector class with support for elliptical path generation.

The VectorEllipse class provides the necessary functionality for elliptical path generation.

Structure

The VectorEllipse class consists of the following fields:

Access
NameTypeComment
  CenterXDOUBLEThe horizontal center of the ellipse. Expressed as a fixed or scaled coordinate.

The horizontal center of the ellipse is defined here as either a fixed or scaled value.

  CenterYDOUBLEThe vertical center of the ellipse. Expressed as a fixed or scaled coordinate.

The vertical center of the ellipse is defined here as either a fixed or scaled value.

  DimensionsINTDimension flags define whether individual dimension fields contain fixed or relative values.

The following dimension flags are supported:

NameDescription
FIXED_RADIUS_XThe RadiusX value is a fixed coordinate.
FIXED_RADIUS_YThe RadiusY value is a fixed coordinate.
FIXED_CENTER_XThe CenterX value is a fixed coordinate.
FIXED_CENTER_YThe CenterY value is a fixed coordinate.
SCALED_RADIUS_XThe RadiusX value is a scaled coordinate.
SCALED_RADIUS_YThe RadiusY value is a scaled coordinate.
SCALED_CENTER_XThe CenterX value is a scaled coordinate.
SCALED_CENTER_YThe CenterY value is a scaled coordinate.
  HeightDOUBLEThe height (vertical diameter) of the ellipse.

The height of the ellipse is defined here as the equivalent of RadiusY * 2.0.

  RadiusDOUBLEThe radius of the ellipse. Expressed as a fixed or scaled coordinate.

The radius of the ellipse is defined here as either a fixed or scaled value. Updating the radius will set both the RadiusX and RadiusY values simultaneously.

  RadiusXDOUBLEThe horizontal radius of the ellipse.

The horizontal radius of the ellipse is defined here as either a fixed or scaled value.

  RadiusYDOUBLEThe vertical radius of the ellipse.

The vertical radius of the ellipse is defined here as either a fixed or scaled value.

  VerticesINTLimits the total number of vertices generated for the ellipse.

Setting a value in Vertices will limit the total number of vertices that are generated for the ellipse. This feature is useful for generating common convex geometrical shapes such as triangles, polygons, hexagons and so forth; because their vertices will always touch the sides of an elliptical area.

Please note that this feature is not part of the SVG standard.

  WidthDOUBLEThe width (horizontal diameter) of the ellipse.

The width of the ellipse is defined here as the equivalent of RadiusX * 2.0.

VectorEllipse class documentation © Paul Manias © 2010-2025