√ C and Objective C math and geometry helpers http://purl.mro.name/ios/MROGeometry

Marcus Rohrmoser 8f8430b00f Release 0.1.0 5 years ago
MROGeometry 08eabd8381 add a license. 5 years ago
MROGeometry.xcodeproj 166ab74298 start a cocoapod. refs #4 5 years ago
MROGeometryTests b0775a4be2 add a license. 5 years ago
tools b0775a4be2 add a license. 5 years ago
.gitignore 03bcc11112 README, gitignore 5 years ago
.travis.yml 35e47adbe9 travis build fix attempt. refs #3 5 years ago
CHANGELOG.md 166ab74298 start a cocoapod. refs #4 5 years ago
Common.xcconfig f263aad572 build settings config syntax fix. 5 years ago
Debug.xcconfig f263aad572 build settings config syntax fix. 5 years ago
LICENSE 166ab74298 start a cocoapod. refs #4 5 years ago
MROGeometry.podspec 166ab74298 start a cocoapod. refs #4 5 years ago
Makefile b0775a4be2 add a license. 5 years ago
README.md 166ab74298 start a cocoapod. refs #4 5 years ago
Rakefile 166ab74298 start a cocoapod. refs #4 5 years ago
Release.xcconfig f263aad572 build settings config syntax fix. 5 years ago
VERSION 166ab74298 start a cocoapod. refs #4 5 years ago

README.md

Build Status

MROGeometry

Some C / Objective-C helpers related to

CGPathReader.h

Parse a SVG path and return a retained CGPathRef.

See PathParser.h

CGPathWriter.h

Write a very simple, non-optimized form of SVG path.

MROCGPointMath.h

Simple CGPoint math:

  • add,
  • subtract,
  • scale (multiply x and y with a number),
  • dot product,
  • distance square and distance.

NSCoder_MROCGPath.h

Persist a CGPathRef using the SVG path format as ASCII/C String.

PathParser.h

Parse a SVG path and return a retained CGPathRef.

Uses the Ragel-generate state machine PathParser.rl directly based on the W3C BNF path grammar for parsing.

TrafoParser.h

Parse a SVG transform attribute and return a CGAffineTransform.

Uses the Ragel-generate state machine TrafoParser.rl directly based on the W3C grammar for parsing.

Global Macros

There are some macros I use all over the place. Instead including the same header in every source file I put them into MROGeometry-Prefix.pch as usual.

Makefile

Generate C state machines and pdf docs from Ragel sources.

Flattr this git repo