Search Results for

    Show / Hide Table of Contents

    Class SineStarFactory

    Creates geometries which are shaped like multi-armed stars with each arm shaped like a sine wave. These kinds of geometries are useful as a more complex geometry for testing algorithms.

    Inheritance
    object
    GeometricShapeFactory
    SineStarFactory
    Inherited Members
    GeometricShapeFactory.GeomFact
    GeometricShapeFactory.PrecModel
    GeometricShapeFactory.Base
    GeometricShapeFactory.Centre
    GeometricShapeFactory.Envelope
    GeometricShapeFactory.NumPoints
    GeometricShapeFactory.Size
    GeometricShapeFactory.Width
    GeometricShapeFactory.Height
    GeometricShapeFactory.Rotation
    GeometricShapeFactory.Rotate(Geometry)
    GeometricShapeFactory.CreateCoord(double, double)
    GeometricShapeFactory.CreateCoordTrans(double, double, Coordinate)
    GeometricShapeFactory.CreateRectangle()
    GeometricShapeFactory.CreateCircle()
    GeometricShapeFactory.CreateEllipse()
    GeometricShapeFactory.CreateSquircle()
    GeometricShapeFactory.CreateSupercircle(double)
    GeometricShapeFactory.CreateArc(double, double)
    GeometricShapeFactory.CreateArcPolygon(double, double)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Geometries.Utilities
    Assembly: NetTopologySuite.dll
    Syntax
    public class SineStarFactory : GeometricShapeFactory

    Constructors

    | Edit this page View Source

    SineStarFactory()

    Creates a factory which will create sine stars using the default GeometryFactory

    Declaration
    public SineStarFactory()
    | Edit this page View Source

    SineStarFactory(GeometryFactory)

    Creates a factory which will create sine stars using the given GeometryFactory

    Declaration
    public SineStarFactory(GeometryFactory geomFact)
    Parameters
    Type Name Description
    GeometryFactory geomFact

    The factory to use

    Properties

    | Edit this page View Source

    ArmLengthRatio

    Gets or sets the ratio of the length of each arm to the radius of the star. A smaller number makes the arms shorter.

    Declaration
    public double ArmLengthRatio { get; set; }
    Property Value
    Type Description
    double
    Remarks

    Value should be between 0.0 and 1.0

    | Edit this page View Source

    NumArms

    Gets/Sets the number of arms in the star

    Declaration
    public int NumArms { get; set; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    Create(Coordinate, double, int, int, double)

    Creates a sine star with the given parameters.

    Declaration
    public static Geometry Create(Coordinate origin, double size, int nPts, int nArms, double armLengthRatio)
    Parameters
    Type Name Description
    Coordinate origin

    The origin point.

    double size

    The size of the star.

    int nPts

    The number of points in the star.

    int nArms

    The number of arms to generate.

    double armLengthRatio

    The arm length ratio.

    Returns
    Type Description
    Geometry

    A sine star shape.

    | Edit this page View Source

    CreateSineStar()

    Generates the geometry for the sine star

    Declaration
    public Geometry CreateSineStar()
    Returns
    Type Description
    Geometry

    The geometry representing the sine star

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX