Classes

The following classes are available globally.

  • The base type for all 1-dimensional geometry types. A 1-dimensional geometry is a geometry that has a length, but no area. A curve is considered simple if it does not intersect itself (except at the start and end point). A curve is considered closed its start and end point are coincident. A simple, closed curve is called a ring.

    See more

    Declaration

    Objective-C

    @interface SFCurve : SFGeometry

    Swift

    class SFCurve : SFGeometry
  • The root of the geometry type hierarchy

    See more

    Declaration

    Objective-C

    @interface SFGeometry : NSObject <NSMutableCopying, NSCoding>

    Swift

    class SFGeometry : NSObject, NSMutableCopying, NSCoding
  • Geometry envelope containing x and y range with optional z and m range

    See more

    Declaration

    Objective-C

    @interface SFGeometryEnvelope : NSObject <NSMutableCopying, NSCoding>

    Swift

    class SFGeometryEnvelope : NSObject, NSMutableCopying, NSCoding
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface SFGeometryTypes : NSObject
    
    /**
     *  Get the name of the geometry type
     *
     *  @param geometryType geometry type enum
     *
     *  @return geometry type name
     */
    +(NSString *) name: (enum SFGeometryType) geometryType;
    
    /**
     *  Get the geometry type of the name
     *
     *  @param name geometry type name
     *
     *  @return geometry type
     */
    +(enum SFGeometryType) fromName: (NSString *) name;
    
    @end

    Swift

    class SFGeometryTypes : NSObject
  • Utilities for Geometry objects

    @author osbornb

    See more

    Declaration

    Objective-C

    @interface SFGeometryUtils : NSObject

    Swift

    class SFGeometryUtils : NSObject
  • Calculate the centroid from curve based geometries. Implementation based on the JTS (Java Topology Suite) CentroidLine.

    @author osbornb

    See more

    Declaration

    Objective-C

    @interface SFCentroidCurve : NSObject

    Swift

    class SFCentroidCurve : NSObject
  • Calculate the centroid from point based geometries. Implementation based on the JTS (Java Topology Suite) CentroidPoint.

    @author osbornb

    See more

    Declaration

    Objective-C

    @interface SFCentroidPoint : NSObject

    Swift

    class SFCentroidPoint : NSObject
  • Calculate the centroid from surface based geometries. Implementation based on the JTS (Java Topology Suite) CentroidArea.

    @author osbornb

    See more

    Declaration

    Objective-C

    @interface SFCentroidSurface : NSObject

    Swift

    class SFCentroidSurface : NSObject
  • Undocumented

    Declaration

    Objective-C

    @interface SFEventTypes : NSObject
    
    @end

    Swift

    class SFEventTypes : NSObject
  • Line segment of an edge between two points

    See more

    Declaration

    Objective-C

    @interface SFSegment : NSObject

    Swift

    class SFSegment : NSObject
  • Shamos-Hoey simple polygon detection

    Based upon C++ implementation: http://geomalgorithms.com/a09-_intersect-3.html

    C++ implementation license:

    Copyright 2001 softSurfer, 2012 Dan Sunday This code may be freely used and modified for any purpose providing that this copyright notice is included with it. SoftSurfer makes no warranty for this code, and cannot be held liable for any real or imagined damage resulting from its use. Users of this code must verify correctness for their application.

    See more

    Declaration

    Objective-C

    @interface SFShamosHoey : NSObject

    Swift

    class SFShamosHoey : NSObject
  • Geometry Code utilities to convert between geometry attributes and geometry codes

    See more

    Declaration

    Objective-C

    @interface SFWGeometryCodes : NSObject

    Swift

    class SFWGeometryCodes : NSObject