C and Objective C math and geometry helpers
Objective-C Ragel in Ruby Host C Ruby Makefile
Latest commit cc2aca1 Mar 19, 2015 @mro copyright year, author
Failed to load latest commit information.
MROGeometry.xcodeproj
MROGeometry
MROGeometryTests
tools
.gitignore
.travis.yml fix travis build. #3 Mar 19, 2015
CHANGELOG.md
Common.xcconfig
Debug.xcconfig
LICENSE
MROGeometry.podspec
Makefile
README.md
Rakefile
Release.xcconfig
VERSION

README.md

Build Status Version License Platform

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.

Design Goals

Quality very good good normal irrelevant
Functionality ×
Reliability ×
Usability ×
Efficiency ×
Changeability ×
Portability ×

Flattr this git repo