diff --git a/docs/api/differ/Collision.html b/docs/api/differ/Collision.html new file mode 100644 index 0000000..c2fcb31 --- /dev/null +++ b/docs/api/differ/Collision.html @@ -0,0 +1,133 @@ + + + + + snow - + + + + + + + + + + + + + + + + + +
+

Logo

+


+
search API (or start typing anywhere)

+
+ + + + +
+ + + +

Collision

+differ.Collision

+
+ +

class
+meta: @:directlyUsed, @:keep

+
+ + +

  + 

+

Methods


+ pointInPolystatic
+ pointInPoly(point:differ.math.Vector, poly:differ.shapes.Polygon) : Bool
Test if a given point lands inside the given polygon. + Returns true if it does, false otherwise.

+

+ + rayWithRaystatic

+ rayWithRay(ray1:differ.shapes.Ray, ray2:differ.shapes.Ray) : differ.data.RayIntersection
Test a ray against another ray. + When no collision is found, this function returns null. + Returns a RayIntersection if a collision is found.

+

+ + rayWithRaysstatic

+ rayWithRays(ray:differ.shapes.Ray, rays:Array<differ.shapes.Ray>) : Array<differ.data.RayIntersection>
Test a ray against a list of other rays. + When no collision is found, this function returns an empty array, this function will never return null. + Returns a list of RayIntersection information for each collision found.

+

+ + rayWithShapestatic

+ rayWithShape(ray:differ.shapes.Ray, shape:differ.shapes.Shape) : differ.data.RayCollision
Test a line between two points against a list of shapes. + When no collision is found, this function returns null. + Returns a RayCollision if a collision is found.

+

+ + rayWithShapesstatic

+ rayWithShapes(ray:differ.shapes.Ray, shapes:Array<differ.shapes.Shape>) : Array<differ.data.RayCollision>
Test a ray between two points against a list of shapes. + When no collision is found, this function returns an empty array, this function will never return null. + Returns a list of RayCollision information for each collision found.

+

+ + shapeWithShapestatic

+ shapeWithShape(shape1:differ.shapes.Shape, shape2:differ.shapes.Shape) : differ.data.ShapeCollision
Test a single shape against another shape. + When no collision is found between them, this function returns null. + Returns a ShapeCollision if a collision is found.

+

+ + shapeWithShapesstatic

+ shapeWithShapes(shape1:differ.shapes.Shape, shapes:Array<differ.shapes.Shape>) : Array<differ.data.ShapeCollision>
Test a single shape against multiple other shapes. + When no collision is found, this function returns an empty array, this function will never return null. + Returns a list of ShapeCollision information for each collision found.

+

+
+ +

  +  +  + 

+ +
+ + + diff --git a/docs/api/differ/ShapeDrawer.html b/docs/api/differ/ShapeDrawer.html new file mode 100644 index 0000000..c2d63ef --- /dev/null +++ b/docs/api/differ/ShapeDrawer.html @@ -0,0 +1,126 @@ + + + + + snow - + + + + + + + + + + + + + + + + + +
+

Logo

+


+
search API (or start typing anywhere)

+
+ + + + +
+ + + +

ShapeDrawer

+differ.ShapeDrawer

+

To implement your own debug drawing class, you only need to override drawLine function and implement it + the rest is handled internally. You can override specifics if you want, but it’s not required

+
+ +

class
+meta: @:keep

+
+ + +

  + 

+

Methods


+ drawCircle
+ drawCircle(circle:differ.shapes.Circle) : Void
Draw a circle Shape

+

+ + drawLine

+ drawLine(p0:differ.math.Vector, p1:differ.math.Vector, startPoint:Bool) : Void
Draw a line between p0 and p1. Implement this function at minimum in custom drawing handlers

+

+ + drawPoint

+ drawPoint(point:differ.math.Vector, size:Float) : Void

+

+ + drawPolygon

+ drawPolygon(poly:differ.shapes.Polygon) : Void
Draw a Polygon

+

+ + drawShape

+ drawShape(shape:differ.shapes.Shape) : Void
Draw a Shape, it will determine the type and draw it for you.

+

+ + drawShapeCollision

+ drawShapeCollision(data:differ.data.ShapeCollision, length:Float) : Void

+

+ + drawVector

+ drawVector(v:differ.math.Vector, start:differ.math.Vector, startPoint:Bool) : Void
Draw a Vector (with magnitude)

+

+ + new

+ new() : Void

+

+
+ +

  +  +  + 

+ +
+ + + diff --git a/docs/api/differ/data/RayCollision.html b/docs/api/differ/data/RayCollision.html new file mode 100644 index 0000000..d879304 --- /dev/null +++ b/docs/api/differ/data/RayCollision.html @@ -0,0 +1,110 @@ + + + + + snow - + + + + + + + + + + + + + + + + + +
+

Logo

+


+
search API (or start typing anywhere)

+
+ + + + +
+ + + +

RayCollision

+differ.data.RayCollision

+

Ray collision intersection data, obtained by testing a shape and a ray.

+
+ +

class
+meta: @:directlyUsed, @:keep

+
+ + +

  + 

+

Members


+ end
+ end : Float
+ Distance along ray that the intersection ended at.
+ ray
+ ray : differ.shapes.Ray
+ The ray involved in the intersection.
+ shape
+ shape : differ.shapes.Shape
+ Shape the intersection was with.
+ start
+ start : Float
+ Distance along ray that the intersection start at.

+

Methods


+ new
+ new(_shape:differ.shapes.Shape, _ray:differ.shapes.Ray, _start:Float, _end:Float) : Void

+

+
+ +

  +  +  + 

+ +
+ + + diff --git a/docs/api/differ/data/RayCollisionHelper.html b/docs/api/differ/data/RayCollisionHelper.html new file mode 100644 index 0000000..e02bab5 --- /dev/null +++ b/docs/api/differ/data/RayCollisionHelper.html @@ -0,0 +1,109 @@ + + + + + snow - + + + + + + + + + + + + + + + + + +
+

Logo

+


+
search API (or start typing anywhere)

+
+ + + + +
+ + + +

RayCollisionHelper

+differ.data.RayCollisionHelper

+

A static extension class helper for RayCollision

+
+ +

class
+meta: @:directlyUsed, @:keep

+
+ + +

  + 

+

Methods


+ hitEndstatic
+ hitEnd(data:differ.data.RayCollision) : differ.math.Vector
Convenience: get the end point along the line as a vector. + Note that it is possible that this extends beyond the length of the ray, + when RayCollision end value is > 1, i.e the end of the ray is inside the shape area. + If you need that point, you would use ray.end as the point, + i.e if(data.end > 1) point = data.ray.end; else point = data.hitEnd();

+

+ + hitStartstatic

+ hitStart(data:differ.data.RayCollision) : differ.math.Vector
Convenience: get the start point along the line as a vector. + It is possible the start point is not along the ray itself, when + the start value is < 0, the ray start is inside the shape. + If you need that point, use the ray.start point, + i.e if(data.start < 0) point = data.ray.start; else point = data.hitStart();

+

+
+ +

  +  +  + 

+ +
+ + + diff --git a/docs/api/differ/data/RayIntersection.html b/docs/api/differ/data/RayIntersection.html new file mode 100644 index 0000000..54b65f5 --- /dev/null +++ b/docs/api/differ/data/RayIntersection.html @@ -0,0 +1,110 @@ + + + + + snow - + + + + + + + + + + + + + + + + + +
+

Logo

+


+
search API (or start typing anywhere)

+
+ + + + +
+ + + +

RayIntersection

+differ.data.RayIntersection

+

Ray intersection data obtained by testing two rays for intersection.

+
+ +

class
+meta: @:directlyUsed, @:keep

+
+ + +

  + 

+

Members


+ ray1
+ ray1 : differ.shapes.Ray
+ The first ray in the test
+ ray2
+ ray2 : differ.shapes.Ray
+ The second ray in the test
+ u1
+ u1 : Float
+ u value for ray1.
+ u2
+ u2 : Float
+ u value for ray2.

+

Methods


+ new
+ new(ray1:differ.shapes.Ray, u1:Float, ray2:differ.shapes.Ray, u2:Float) : Void

+

+
+ +

  +  +  + 

+ +
+ + + diff --git a/docs/api/differ/data/ShapeCollision.html b/docs/api/differ/data/ShapeCollision.html new file mode 100644 index 0000000..cd80b94 --- /dev/null +++ b/docs/api/differ/data/ShapeCollision.html @@ -0,0 +1,110 @@ + + + + + snow - + + + + + + + + + + + + + + + + + +
+

Logo

+


+
search API (or start typing anywhere)

+
+ + + + +
+ + + +

ShapeCollision

+differ.data.ShapeCollision

+

Collision data, obtained by testing two shapes for a collision.

+
+ +

class
+meta: @:directlyUsed, @:keep

+
+ + +

  + 

+

Members


+ overlap
+ overlap : Float
+ the overlap amount
+ separation
+ separation : differ.math.Vector
+ a vector that when subtracted to shape 1 will separate it from shape 2
+ shape1
+ shape1 : differ.shapes.Shape
+ the first shape
+ shape2
+ shape2 : differ.shapes.Shape
+ the second shape
+ unitVector
+ unitVector : differ.math.Vector
+ unit vector on the axis of the collision (the normal of the face that was collided with)

+

Methods


+
+ +

  +  +  + 

+ +
+ + + diff --git a/docs/api/differ/math/Matrix.html b/docs/api/differ/math/Matrix.html new file mode 100644 index 0000000..0a451d3 --- /dev/null +++ b/docs/api/differ/math/Matrix.html @@ -0,0 +1,143 @@ + + + + + snow - + + + + + + + + + + + + + + + + + +
+

Logo

+


+
search API (or start typing anywhere)

+
+ + + + +
+ + + +

Matrix

+differ.math.Matrix

+
+ +

class
+meta: @:directlyUsed, @:keep

+
+ + +

  + 

+

Members


+ a
+ a : Float
+
+ b
+ b : Float
+
+ c
+ c : Float
+
+ d
+ d : Float
+
+ tx
+ tx : Float
+
+ ty
+ ty : Float
+

+

Methods


+ compose
+ compose(_position:differ.math.Vector, _rotation:Float, _scale:differ.math.Vector) : Void

+

+ + identity

+ identity() : Void

+

+ + makeTranslation

+ makeTranslation(_x:Float, _y:Float) : differ.math.Matrix

+

+ + new

+ new(a:Float, b:Float, c:Float, d:Float, tx:Float, ty:Float) : Void

+

+ + rotate

+ rotate(angle:Float) : Void

+

+ + scale

+ scale(x:Float, y:Float) : Void

+

+ + toString

+ toString() : String

+

+ + translate

+ translate(x:Float, y:Float) : Void

+

+
+ +

  +  +  + 

+ +
+ + + diff --git a/docs/api/differ/math/Vector.html b/docs/api/differ/math/Vector.html new file mode 100644 index 0000000..7c15b3b --- /dev/null +++ b/docs/api/differ/math/Vector.html @@ -0,0 +1,153 @@ + + + + + snow - + + + + + + + + + + + + + + + + + +
+

Logo

+


+
search API (or start typing anywhere)

+
+ + + + +
+ + + +

Vector

+differ.math.Vector

+

2D vector class

+
+ +

class
+meta: @:directlyUsed, @:keep

+
+ + +

  + 

+

Members


+ x
+ x : Float
+ The x component
+ y
+ y : Float
+ The y component

+

Properties


+ length
+ length : Float
+ The length of the vector + lengthsq
+ lengthsq : Float
+ The length, squared, of the vector

+

Methods


+ add
+ add(other:differ.math.Vector) : differ.math.Vector
Add a vector to this vector. Returns this vector, modified.

+

+ + clone

+ clone() : differ.math.Vector
Copy, returns a new vector instance from this vector.

+

+ + cross

+ cross(other:differ.math.Vector) : Float
Return the cross product of this vector and another vector.

+

+ + dot

+ dot(other:differ.math.Vector) : Float
Return the dot product of this vector and another vector.

+

+ + invert

+ invert() : differ.math.Vector
Invert this vector. Returns this vector, modified.

+

+ + new

+ new(_x:Float, _y:Float) : Void

+

+ + normalize

+ normalize() : differ.math.Vector
Sets the vector’s length to 1. Returns this vector, modified.

+

+ + subtract

+ subtract(other:differ.math.Vector) : differ.math.Vector
Subtract a vector from this one. Returns this vector, modified.

+

+ + toString

+ toString() : String
Return a string representation of this vector.

+

+ + transform

+ transform(matrix:differ.math.Matrix) : differ.math.Vector
Transforms Vector based on the given Matrix. Returns this vector, modified.

+

+ + truncate

+ truncate(max:Float) : differ.math.Vector
Sets the length to fit under the given maximum value. + Nothing is done if the vector is already shorter. + Returns this vector, modified.

+

+
+ +

  +  +  + 

+ +
+ + + diff --git a/docs/api/differ/sat/Common.html b/docs/api/differ/sat/Common.html new file mode 100644 index 0000000..18294ef --- /dev/null +++ b/docs/api/differ/sat/Common.html @@ -0,0 +1,97 @@ + + + + + snow - + + + + + + + + + + + + + + + + + +
+

Logo

+


+
search API (or start typing anywhere)

+
+ + + + +
+ + + +

Common

+differ.sat.Common

+

Common math utilities used internally

+
+ +

class
+meta: @:directlyUsed, @:keep

+
+ + +

  + 

+

Methods


+ findNormalAxisstatic
+ findNormalAxis(vertices:Array<differ.math.Vector>, index:Int) : differ.math.Vector
Internal api - find the normal axis of a vert in the list at index

+

+
+ +

  +  +  + 

+ +
+ + + diff --git a/docs/api/differ/sat/SAT2D.html b/docs/api/differ/sat/SAT2D.html new file mode 100644 index 0000000..40fedef --- /dev/null +++ b/docs/api/differ/sat/SAT2D.html @@ -0,0 +1,122 @@ + + + + + snow - + + + + + + + + + + + + + + + + + +
+

Logo

+


+
search API (or start typing anywhere)

+
+ + + + +
+ + + +

SAT2D

+differ.sat.SAT2D

+

Implementation details for the 2D SAT collision queries. + Used by the various shapes, and Collision API, mostly internally.

+
+ +

class
+meta: @:directlyUsed, @:keep

+
+ + +

  + 

+

Methods


+ bresenhamLinestatic
+ bresenhamLine(start:differ.math.Vector, end:differ.math.Vector) : Array<differ.math.Vector>
Internal api - generate a bresenham line between given start and end points

+

+ + testCircleVsCirclestatic

+ testCircleVsCircle(circle1:differ.shapes.Circle, circle2:differ.shapes.Circle) : differ.data.ShapeCollision
Internal api - test a circle against a circle

+

+ + testCircleVsPolygonstatic

+ testCircleVsPolygon(circle:differ.shapes.Circle, polygon:differ.shapes.Polygon, flip:Bool) : differ.data.ShapeCollision
Internal api - test a circle against a polygon

+

+ + testPolygonVsPolygonstatic

+ testPolygonVsPolygon(polygon1:differ.shapes.Polygon, polygon2:differ.shapes.Polygon, flip:Bool) : differ.data.ShapeCollision
Internal api - test a polygon against another polygon

+

+ + testRayVsCirclestatic

+ testRayVsCircle(ray:differ.shapes.Ray, circle:differ.shapes.Circle) : differ.data.RayCollision
Internal api - test a ray against a circle

+

+ + testRayVsPolygonstatic

+ testRayVsPolygon(ray:differ.shapes.Ray, polygon:differ.shapes.Polygon) : differ.data.RayCollision
Internal api - test a ray against a polygon

+

+ + testRayVsRaystatic

+ testRayVsRay(ray1:differ.shapes.Ray, ray2:differ.shapes.Ray) : differ.data.RayIntersection
Internal api - test a ray against another ray

+

+
+ +

  +  +  + 

+ +
+ + + diff --git a/docs/api/differ/shapes/Circle.html b/docs/api/differ/shapes/Circle.html new file mode 100644 index 0000000..f3a5590 --- /dev/null +++ b/docs/api/differ/shapes/Circle.html @@ -0,0 +1,121 @@ + + + + + snow - + + + + + + + + + + + + + + + + + +
+

Logo

+


+
search API (or start typing anywhere)

+
+ + + + +
+ + + +

Circle

+differ.shapes.Circle

+

A circle collision shape

+
+ +

classextends differ.shapes.Shape
+meta: @:directlyUsed, @:keep

+
+ + +

  + 

+

Members


+

Properties


+ radius
+ radius : Float
+ The radius of this circle. Set on construction + transformedRadius
+ transformedRadius : Float
+ The transformed radius of this circle, based on the scale/rotation

+

Methods


+ new
+ new(x:Float, y:Float, radius:Float) : Void

+

+ + test

+ test(shape:differ.shapes.Shape) : differ.data.ShapeCollision
Test for collision against a shape.

+

+ + testCircle

+ testCircle(circle:differ.shapes.Circle, flip:Bool) : differ.data.ShapeCollision
Test for collision against a circle.

+

+ + testPolygon

+ testPolygon(polygon:differ.shapes.Polygon, flip:Bool) : differ.data.ShapeCollision
Test for collision against a polygon.

+

+ + testRay

+ testRay(ray:differ.shapes.Ray) : differ.data.RayCollision
Test for collision against a ray.

+

+
+ +

  +  +  + 

+ +
+ + + diff --git a/docs/api/differ/shapes/Polygon.html b/docs/api/differ/shapes/Polygon.html new file mode 100644 index 0000000..5f065dc --- /dev/null +++ b/docs/api/differ/shapes/Polygon.html @@ -0,0 +1,145 @@ + + + + + snow - + + + + + + + + + + + + + + + + + +
+

Logo

+


+
search API (or start typing anywhere)

+
+ + + + +
+ + + +

Polygon

+differ.shapes.Polygon

+

A polygon collision shape

+
+ +

classextends differ.shapes.Shape
+meta: @:directlyUsed, @:keep

+
+ + +

  + 

+

Members


+

Properties


+ transformedVertices
+ transformedVertices : Array<differ.math.Vector>
+ The transformed (rotated/scale) vertices cache + vertices
+ vertices : Array<differ.math.Vector>
+ The vertices of this shape

+

Methods


+ createstatic
+ create(x:Float, y:Float, sides:Int, radius:Float) : differ.shapes.Polygon
Helper to create an Ngon at x,y with given number of sides, and radius. + A default radius of 100 if unspecified. Returns a ready made Polygon collision Shape

+

+ + destroy

+ destroy() : Void
Destroy this polygon and clean up.

+

+ + new

+ new(x:Float, y:Float, vertices:Array<differ.math.Vector>) : Void
Create a new polygon with a given set of vertices at position x,y.

+

+ + rectanglestatic

+ rectangle(x:Float, y:Float, width:Float, height:Float, centered:Bool) : differ.shapes.Polygon
Helper generate a rectangle at x,y with a given width/height and centered state. + Centered by default. Returns a ready made Polygon collision Shape

+

+ + squarestatic

+ square(x:Float, y:Float, width:Float, centered:Bool) : differ.shapes.Polygon
Helper generate a square at x,y with a given width/height with given centered state. + Centered by default. Returns a ready made Polygon collision Shape

+

+ + test

+ test(shape:differ.shapes.Shape) : differ.data.ShapeCollision
Test for a collision with a shape.

+

+ + testCircle

+ testCircle(circle:differ.shapes.Circle, flip:Bool) : differ.data.ShapeCollision
Test for a collision with a circle.

+

+ + testPolygon

+ testPolygon(polygon:differ.shapes.Polygon, flip:Bool) : differ.data.ShapeCollision
Test for a collision with a polygon.

+

+ + testRay

+ testRay(ray:differ.shapes.Ray) : differ.data.RayCollision
Test for a collision with a ray.

+

+ + trianglestatic

+ triangle(x:Float, y:Float, radius:Float) : differ.shapes.Polygon
Helper generate a triangle at x,y with a given radius. + Returns a ready made Polygon collision Shape

+

+
+ +

  +  +  + 

+ +
+ + + diff --git a/docs/api/differ/shapes/Ray.html b/docs/api/differ/shapes/Ray.html new file mode 100644 index 0000000..e2c57da --- /dev/null +++ b/docs/api/differ/shapes/Ray.html @@ -0,0 +1,114 @@ + + + + + snow - + + + + + + + + + + + + + + + + + +
+

Logo

+


+
search API (or start typing anywhere)

+
+ + + + +
+ + + +

Ray

+differ.shapes.Ray

+
+ +

class
+meta: @:directlyUsed, @:keep

+
+ + +

  + 

+

Members


+ end
+ end : differ.math.Vector
+ The end point of the ray.
+ infinite
+ infinite : Bool
+ Whether or not the ray is infinite.
+ start
+ start : differ.math.Vector
+ The start point of the ray.

+

Properties


+ dir
+ dir : differ.math.Vector
+ The direction of the ray. + Returns a cached vector, so modifying it will affect this instance. + Updates only when the dir value is accessed.

+

Methods


+ new
+ new(_start:differ.math.Vector, _end:differ.math.Vector, _infinite:Bool) : Void
Create a new ray with the start and end point, + which determine the direction of the ray, and optionally specifying + that this ray is an infinite one.

+

+
+ +

  +  +  + 

+ +
+ + + diff --git a/docs/api/differ/shapes/Shape.html b/docs/api/differ/shapes/Shape.html new file mode 100644 index 0000000..c00acd6 --- /dev/null +++ b/docs/api/differ/shapes/Shape.html @@ -0,0 +1,149 @@ + + + + + snow - + + + + + + + + + + + + + + + + + +
+

Logo

+


+
search API (or start typing anywhere)

+
+ + + + +
+ + + +

Shape

+differ.shapes.Shape

+

A base collision shape

+
+ +

class
+meta: @:keep

+
+ + +

  + 

+

Members


+ active
+ active : Bool
+ The state of this shape, if inactive can be ignored in results
+ data
+ data : Dynamic
+ A generic data object where you can store anything you want, for later use
+ name
+ name : String
+ The name of this shape, to help in debugging
+ tags
+ tags : Map<String, String>
+ A list of tags to use for marking shapes with data for later use, by key/value

+

Properties


+ position
+ position : differ.math.Vector
+ The position of this shape + rotation
+ rotation : Float
+ The rotation of this shape, in degrees + scaleX
+ scaleX : Float
+ The scale in the x direction of this shape + scaleY
+ scaleY : Float
+ The scale in the y direction of this shape + x
+ x : Float
+ The x position of this shape + y
+ y : Float
+ The y position of this shape

+

Methods


+ destroy
+ destroy() : Void
clean up and destroy this shape

+

+ + new

+ new(_x:Float, _y:Float) : Void
Create a new shape at give position x,y

+

+ + test

+ test(shape:differ.shapes.Shape) : differ.data.ShapeCollision
Test this shape against another shape.

+

+ + testCircle

+ testCircle(circle:differ.shapes.Circle, flip:Bool) : differ.data.ShapeCollision
Test this shape against a circle.

+

+ + testPolygon

+ testPolygon(polygon:differ.shapes.Polygon, flip:Bool) : differ.data.ShapeCollision
Test this shape against a polygon.

+

+ + testRay

+ testRay(ray:differ.shapes.Ray) : differ.data.RayCollision
Test this shape against a ray.

+

+
+ +

  +  +  + 

+ +
+ + + diff --git a/docs/api/hxcollision/Collision.html b/docs/api/hxcollision/Collision.html deleted file mode 100644 index 10b9f42..0000000 --- a/docs/api/hxcollision/Collision.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
-

Logo

-
-

Collision

-
-

class -

-

-
-

  - 

-

Members


no public members

-

Methods


- pointInPolystaticpointInPoly(point:hxcollision.math.Vector, poly:hxcollision.shapes.Polygon) : Bool
Test if a given point lands inside the given polygon -
- - raystaticray(lineStart:hxcollision.math.Vector, lineEnd:hxcollision.math.Vector, shapes:Array<hxcollision.shapes.Shape>) : Bool
Test a line between two points against a list of shapes. - If a collision is found, returns true, otherwise false. -
- - teststatictest(shape1:hxcollision.shapes.Shape, shape2:hxcollision.shapes.Shape) : hxcollision.CollisionData
Test a single shape against another shape. - When no collision is found between them, this function returns null. - Returns a CollisionData if a collision is found. -
- - testCircleLinestatictestCircleLine(circle:hxcollision.shapes.Circle, lineStart:hxcollision.math.Vector, lineEnd:hxcollision.math.Vector) : Bool
Test a circle vs a line between two points -
- - testShapesstatictestShapes(shape1:hxcollision.shapes.Shape, shapes:Array<hxcollision.shapes.Shape>) : Array<hxcollision.CollisionData>
Test a single shape against multiple other shapes. - Will never return null, always length 0 array. - Returns a list of CollisionData information for each collision found. -

-

Properties


no public properties

-

  -  - 

- -
- - - \ No newline at end of file diff --git a/docs/api/hxcollision/CollisionData.html b/docs/api/hxcollision/CollisionData.html deleted file mode 100644 index d8fa531..0000000 --- a/docs/api/hxcollision/CollisionData.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
-

Logo

-
-

CollisionData

-
-

class -

-

-
-

  - 

-

Members


- overlapoverlap : Float
- the overlap amount - separationseparation : hxcollision.math.Vector
- a vector that when subtracted to shape 1 will separate it from shape 2 - shape1shape1 : hxcollision.shapes.Shape
- the first shape - shape2shape2 : hxcollision.shapes.Shape
- the second shape - unitVectorunitVector : hxcollision.math.Vector
- unit vector on the axis of the collision (the normal of the face that was collided with)

-

Methods


-

Properties


no public properties

-

  -  - 

- -
- - - \ No newline at end of file diff --git a/docs/api/hxcollision/OpenFLDrawer.html b/docs/api/hxcollision/OpenFLDrawer.html deleted file mode 100644 index 0ca5541..0000000 --- a/docs/api/hxcollision/OpenFLDrawer.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
-

Logo

-
-

OpenFLDrawer

-
-

classextends hxcollision.ShapeDrawer -

-

-
-

  - 

-

Members


- graphicsgraphics : flash.display.Graphics
- Access to the graphics object for manually manipulating it post construction

-

Methods


- drawCircle>drawCircle(circle:hxcollision.shapes.Circle) : Void
Implemented by choice, not required -
- - drawLine>drawLine(p0:hxcollision.math.Vector, p1:hxcollision.math.Vector, ?startPoint:Bool=true) : Void
Implementation required by ShapeDrawer -
- - drawVector>drawVector(p0:hxcollision.math.Vector, p1:hxcollision.math.Vector, ?startPoint:Bool=true) : Void
-
- - new>new(_graphics:flash.display.Graphics) : Void
Create a new drawing helper, which will draw into the provided Graphics object -
- - drawPolygon>drawPolygon(poly:hxcollision.shapes.Polygon) : Void
Draw a Polygon -
- - drawShape>drawShape(shape:hxcollision.shapes.Shape) : Void
Draw a Shape, it will determine the type and draw it for you. -

-

Properties


no public properties

-

  -  - 

- -
- - - \ No newline at end of file diff --git a/docs/api/hxcollision/ShapeDrawer.html b/docs/api/hxcollision/ShapeDrawer.html deleted file mode 100644 index 85a5501..0000000 --- a/docs/api/hxcollision/ShapeDrawer.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
-

Logo

-
-

ShapeDrawer

-

To implement your own debug drawing class, you only need to override drawLine function and implement it - the rest is handled internally. You can override specifics if you want, but it’s not required

-
-

class -

-

-
-

  - 

-

Members


no public members

-

Methods


- drawCircledrawCircle(circle:hxcollision.shapes.Circle) : Void
Draw a circle Shape -
- - drawLinedrawLine(p0:hxcollision.math.Vector, p1:hxcollision.math.Vector, ?startPoint:Bool=true) : Void
Draw a line between p0 and p1. Implement this function at minimum in custom drawing handlers -
- - drawPolygondrawPolygon(poly:hxcollision.shapes.Polygon) : Void
Draw a Polygon -
- - drawShapedrawShape(shape:hxcollision.shapes.Shape) : Void
Draw a Shape, it will determine the type and draw it for you. -
- - drawVectordrawVector(v:hxcollision.math.Vector, start:hxcollision.math.Vector, ?startPoint:Bool=true) : Void
Draw a Vector (with magnitude) -
- - newnew() : Void
empty constructor -

-

Properties


no public properties

-

  -  - 

- -
- - - \ No newline at end of file diff --git a/docs/api/hxcollision/math/Matrix.html b/docs/api/hxcollision/math/Matrix.html deleted file mode 100644 index 35c5786..0000000 --- a/docs/api/hxcollision/math/Matrix.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
-

Logo

-
-

Matrix

-
-

class
implements cpp.rtti.FieldNumericIntegerLookup -

-

-
-

  - 

-

Members


- aa : Float
- - bb : Float
- - cc : Float
- - dd : Float
- - txtx : Float
- - tyty : Float
-

-

Methods


- composecompose(_position:hxcollision.math.Vector, _rotation:Float, _scale:hxcollision.math.Vector) : Void
-
- - makeTranslationmakeTranslation(_x:Float, _y:Float) : hxcollision.math.Matrix
-
- - newnew(?a:Float=1, ?b:Float=0, ?c:Float=0, ?d:Float=1, ?tx:Float=0, ?ty:Float=0) : Void
-
- - rotaterotate(angle:Float) : Void
-
- - scalescale(x:Float, y:Float) : Void
-
- - toStringtoString() : String
-
- - translatetranslate(x:Float, y:Float) : Void
-

-

Properties


no public properties

-

  -  - 

- -
- - - \ No newline at end of file diff --git a/docs/api/hxcollision/math/Vector.html b/docs/api/hxcollision/math/Vector.html deleted file mode 100644 index e652cbc..0000000 --- a/docs/api/hxcollision/math/Vector.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
-

Logo

-
-

Vector

- -
-

class -

-

-
-

  - 

-

Members


no public members

-

Methods


- addadd(vector2:hxcollision.math.Vector) : hxcollision.math.Vector
* Add a vector to this vector.

-
 * @param vector2 The vector to add to this one.
- * @return Vector This vector.</span>
-    </span>
-<span class="method apipage">
-        <a name="clone"><a class="lift" href="#clone">clone</a></a><code class="signature apipage">clone() : [hxcollision.math.Vector](#hxcollision.math.Vector)</code><br/><span class="small_desc_flat">* Creates an exact copy of this Vector
- * @return Vector A copy of this Vector</span>
-    </span>
-<span class="method apipage">
-        <a name="dot"><a class="lift" href="#dot">dot</a></a><code class="signature apipage">dot(vector2:<span>[hxcollision.math.Vector](#hxcollision.math.Vector)</span>) : [Float](http://api.haxe.org/Float.html)</code><br/><span class="small_desc_flat">* Calculate the dot product of this vector and another.
- * @param vector2 Another Vector.
- * @return Float The dot product.</span>
-    </span>
-<span class="method apipage">
-        <a name="invert"><a class="lift" href="#invert">invert</a></a><code class="signature apipage">invert() : [hxcollision.math.Vector](#hxcollision.math.Vector)</code><br/><span class="small_desc_flat">* Makes the vector face the opposite way.
- * @return Vector This vector.</span>
-    </span>
-<span class="method apipage">
-        <a name="new"><a class="lift" href="#new">new</a></a><code class="signature apipage">new(?\_x:<span>[Float](http://api.haxe.org/Float.html)=0</span>, ?\_y:<span>[Float](http://api.haxe.org/Float.html)=0</span>) : [Void](http://api.haxe.org/Void.html)</code><br/><span class="small_desc_flat">* Constructor</span>
-    </span>
-<span class="method apipage">
-        <a name="normalize"><a class="lift" href="#normalize">normalize</a></a><code class="signature apipage">normalize() : [hxcollision.math.Vector](#hxcollision.math.Vector)</code><br/><span class="small_desc_flat">* Sets the vector's length to 1.
- * @return Vector This vector.</span>
-    </span>
-<span class="method apipage">
-        <a name="set_length"><a class="lift" href="#set_length">set\_length</a></a><code class="signature apipage">set\_length(value:<span>[Float](http://api.haxe.org/Float.html)</span>) : [Float](http://api.haxe.org/Float.html)</code><br/><span class="small_desc_flat">* Sets the length which will change x and y, but not the angle.</span>
-    </span>
-<span class="method apipage">
-        <a name="subtract"><a class="lift" href="#subtract">subtract</a></a><code class="signature apipage">subtract(vector2:<span>[hxcollision.math.Vector](#hxcollision.math.Vector)</span>) : [hxcollision.math.Vector](#hxcollision.math.Vector)</code><br/><span class="small_desc_flat">* Subtract a vector from this one.
- * @param vector2 The vector to subtract.
- * @return Vector This vector.</span>
-    </span>
-<span class="method apipage">
-        <a name="toString"><a class="lift" href="#toString">toString</a></a><code class="signature apipage">toString() : [String](http://api.haxe.org/String.html)</code><br/><span class="small_desc_flat">* Turn this vector into a string.
- * @return String This vector in string form.</span>
-    </span>
-<span class="method apipage">
-        <a name="transform"><a class="lift" href="#transform">transform</a></a><code class="signature apipage">transform(matrix:<span>[hxcollision.math.Matrix](#hxcollision.math.Matrix)</span>) : [hxcollision.math.Vector](#hxcollision.math.Vector)</code><br/><span class="small_desc_flat">*  Transforms Vector based on the given Matrix
- * @param matrix The matrix to use to transform this vector.
- * @return Vector returns a new, transformed Vector.</span>
-    </span>
-<span class="method apipage">
-        <a name="truncate"><a class="lift" href="#truncate">truncate</a></a><code class="signature apipage">truncate(max:<span>[Float](http://api.haxe.org/Float.html)</span>) : [hxcollision.math.Vector](#hxcollision.math.Vector)</code><br/><span class="small_desc_flat">* Sets the length under the given value. Nothing is done if the vector is already shorter.
- * @param max The max length this vector can be.
- * @return Vector This vector.</span>
-    </span>
-

Properties


- lengthlength :
-
- lengthsqlengthsq :
-
- xx :
-
- yy :
-

-

  -  - 

- -
- - - \ No newline at end of file diff --git a/docs/api/hxcollision/shapes/Circle.html b/docs/api/hxcollision/shapes/Circle.html deleted file mode 100644 index bbf5cda..0000000 --- a/docs/api/hxcollision/shapes/Circle.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
-

Logo

-
-

Circle

-

A circle collision shape

-
-

classextends hxcollision.shapes.Shape -

-

-
-

  - 

-

Members


- active>active : Bool
- The state of this shape, if inactive can be ignored in results - data>data : Dynamic
- A generic data object where you can store anything you want, for later use - name>name : String
- The name of this shape, to help in debugging - tags>tags : Map<String, String>
- A list of tags to use for marking shapes with data for later use, by key/value

-

Methods


- new>new(x:Float, y:Float, radius:Float) : Void
-
- - destroy>destroy() : Void
clean up and destroy this shape -

-

Properties


- radiusradius :
The radius of this circle. Set on construction -
- transformedRadiustransformedRadius :
The transformed radius of this circle, based on the scale/rotation -
- position>position :
The position of this shape -
- rotation>rotation :
The rotation of this shape, in degrees -
- scaleX>scaleX :
The scale in the x direction of this shape -
- scaleY>scaleY :
The scale in the y direction of this shape -
- transformedVertices>transformedVertices :
The transformed (rotated/scale) vertices cache -
- vertices>vertices :
The vertices of this shape -
- x>x :
The x position of this shape -
- y>y :
The y position of this shape -

-

  -  - 

- -
- - - \ No newline at end of file diff --git a/docs/api/hxcollision/shapes/Polygon.html b/docs/api/hxcollision/shapes/Polygon.html deleted file mode 100644 index 1d1b352..0000000 --- a/docs/api/hxcollision/shapes/Polygon.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
-

Logo

-
-

Polygon

-

A polygon collision shape

-
-

classextends hxcollision.shapes.Shape -

-

-
-

  - 

-

Members


- active>active : Bool
- The state of this shape, if inactive can be ignored in results - data>data : Dynamic
- A generic data object where you can store anything you want, for later use - name>name : String
- The name of this shape, to help in debugging - tags>tags : Map<String, String>
- A list of tags to use for marking shapes with data for later use, by key/value

-

Methods


- createstaticcreate(x:Float, y:Float, sides:Int, ?radius:Float=100) : hxcollision.shapes.Polygon
Helper to create an Ngon at x,y with given number of sides, and radius. - A default radius of 100 if unspecified. Returns a ready made Polygon collision Shape -
- - destroy>destroy() : Void
Destroy this polygon and clean up. -
- - new>new(x:Float, y:Float, vertices:Array<hxcollision.math.Vector>) : Void
Create a new polygon with a given set of vertices at position x,y. -
- - rectanglestaticrectangle(x:Float, y:Float, width:Float, height:Float, ?centered:Bool=true) : hxcollision.shapes.Polygon
Helper generate a rectangle at x,y with a given width/height and centered state. - Centered by default. Returns a ready made Polygon collision Shape -
- - squarestaticsquare(x:Float, y:Float, width:Float, ?centered:Bool=true) : hxcollision.shapes.Polygon
Helper generate a square at x,y with a given width/height with given centered state. - Centered by default. Returns a ready made Polygon collision Shape -
- - trianglestatictriangle(x:Float, y:Float, radius:Float) : hxcollision.shapes.Polygon
Helper generate a triangle at x,y with a given radius. - Returns a ready made Polygon collision Shape -

-

Properties


- position>position :
The position of this shape -
- rotation>rotation :
The rotation of this shape, in degrees -
- scaleX>scaleX :
The scale in the x direction of this shape -
- scaleY>scaleY :
The scale in the y direction of this shape -
- transformedVertices>transformedVertices :
The transformed (rotated/scale) vertices cache -
- vertices>vertices :
The vertices of this shape -
- x>x :
The x position of this shape -
- y>y :
The y position of this shape -

-

  -  - 

- -
- - - \ No newline at end of file diff --git a/docs/api/hxcollision/shapes/Shape.html b/docs/api/hxcollision/shapes/Shape.html deleted file mode 100644 index 1338905..0000000 --- a/docs/api/hxcollision/shapes/Shape.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
-

Logo

-
-

Shape

-

A base collision class shape

-
-

class -

-

-
-

  - 

-

Members


- activeactive : Bool
- The state of this shape, if inactive can be ignored in results - datadata : Dynamic
- A generic data object where you can store anything you want, for later use - namename : String
- The name of this shape, to help in debugging - tagstags : Map<String, String>
- A list of tags to use for marking shapes with data for later use, by key/value

-

Methods


- destroydestroy() : Void
clean up and destroy this shape -
- - newnew(_x:Float, _y:Float) : Void
Create a new shape at give position x,y -

-

Properties


- positionposition :
The position of this shape -
- rotationrotation :
The rotation of this shape, in degrees -
- scaleXscaleX :
The scale in the x direction of this shape -
- scaleYscaleY :
The scale in the y direction of this shape -
- transformedVerticestransformedVertices :
The transformed (rotated/scale) vertices cache -
- verticesvertices :
The vertices of this shape -
- xx :
The x position of this shape -
- yy :
The y position of this shape -

-

  -  - 

- -
- - - \ No newline at end of file diff --git a/docs/api/index.html b/docs/api/index.html index 6b75dc8..7742eae 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -1,17 +1,18 @@ - + + snow - - + - + @@ -39,8 +40,13 @@ $(this).html(' ') }); - $('.tooltip').tooltipster({ + $('.tooltip').each(function(e){ + var c = $(this).attr('data-tooltip'); + $(this).tooltipster({ + content:$('' + c + ''), + interactive:true, theme:'tooltipster-shadow' + }); }); }); //document.ready @@ -51,125 +57,41 @@

Logo

-

hxcollision

Collision

- view -
- Methods - bresenhamLine(start:hxcollision.math.Vector, end:hxcollision.math.Vector) : Array<hxcollision.math.Vector>new() : VoidpointInPoly(point:hxcollision.math.Vector, poly:hxcollision.shapes.Polygon) : Boolray(lineStart:hxcollision.math.Vector, lineEnd:hxcollision.math.Vector, shapes:Array<hxcollision.shapes.Shape>) : Booltest(shape1:hxcollision.shapes.Shape, shape2:hxcollision.shapes.Shape) : hxcollision.CollisionDatatestCircleLine(circle:hxcollision.shapes.Circle, lineStart:hxcollision.math.Vector, lineEnd:hxcollision.math.Vector) : BooltestShapes(shape1:hxcollision.shapes.Shape, shapes:Array<hxcollision.shapes.Shape>) : Array<hxcollision.CollisionData> -

CollisionData

- view -
- Members - overlap : Float
separation : hxcollision.math.Vector
shape1 : hxcollision.shapes.Shape
shape2 : hxcollision.shapes.Shape
unitVector : hxcollision.math.Vector
-
- Methods - new() : Void -

OpenFLDrawer

- view -
- Members - graphics : flash.display.Graphics
-
- Methods - >drawCircle(circle:hxcollision.shapes.Circle) : Void>drawLine(p0:hxcollision.math.Vector, p1:hxcollision.math.Vector, ?startPoint:Bool=true) : Void>drawVector(p0:hxcollision.math.Vector, p1:hxcollision.math.Vector, ?startPoint:Bool=true) : Void>new(_graphics:flash.display.Graphics) : Void>drawPolygon(poly:hxcollision.shapes.Polygon) : Void>drawShape(shape:hxcollision.shapes.Shape) : Void -

ShapeDrawer

- view -
- Methods - drawCircle(circle:hxcollision.shapes.Circle) : VoiddrawLine(p0:hxcollision.math.Vector, p1:hxcollision.math.Vector, ?startPoint:Bool=true) : VoiddrawPolygon(poly:hxcollision.shapes.Polygon) : VoiddrawShape(shape:hxcollision.shapes.Shape) : VoiddrawVector(v:hxcollision.math.Vector, start:hxcollision.math.Vector, ?startPoint:Bool=true) : Voidnew() : Void -

-

hxcollision.math

Matrix

- view -
- Members - a : Float
b : Float
c : Float
d : Float
tx : Float
ty : Float
-
- Methods - compose(_position:hxcollision.math.Vector, _rotation:Float, _scale:hxcollision.math.Vector) : VoidmakeTranslation(_x:Float, _y:Float) : hxcollision.math.Matrixnew(?a:Float=1, ?b:Float=0, ?c:Float=0, ?d:Float=1, ?tx:Float=0, ?ty:Float=0) : Voidrotate(angle:Float) : Voidscale(x:Float, y:Float) : VoidtoString() : Stringtranslate(x:Float, y:Float) : Void -

Vector

- view -
- Methods - add(vector2:hxcollision.math.Vector) : hxcollision.math.Vectorclone() : hxcollision.math.Vectordot(vector2:hxcollision.math.Vector) : Floatinvert() : hxcollision.math.Vectornew(?_x:Float=0, ?_y:Float=0) : Voidnormalize() : hxcollision.math.Vectorset_length(value:Float) : Floatsubtract(vector2:hxcollision.math.Vector) : hxcollision.math.VectortoString() : Stringtransform(matrix:hxcollision.math.Matrix) : hxcollision.math.Vectortruncate(max:Float) : hxcollision.math.Vector -
- Properties - - length : Float - lengthsq : Float - x : Float - y : Float - -

-

hxcollision.shapes

Circle

- view -
- Members - >active : Bool
>data : Dynamic
>name : String
>tags : Map<String, String>
-
- Methods - >new(x:Float, y:Float, radius:Float) : Void>destroy() : Void -
- Properties - - radius : Float - transformedRadius : Float - >position : hxcollision.math.Vector - >rotation : Float - >scaleX : Float - >scaleY : Float - >transformedVertices : Array<hxcollision.math.Vector> - >vertices : Array<hxcollision.math.Vector> - >x : Float - >y : Float - -

Polygon

- view -
- Members - >active : Bool
>data : Dynamic
>name : String
>tags : Map<String, String>
-
- Methods - create(x:Float, y:Float, sides:Int, ?radius:Float=100) : hxcollision.shapes.Polygon>destroy() : Void>new(x:Float, y:Float, vertices:Array<hxcollision.math.Vector>) : Voidrectangle(x:Float, y:Float, width:Float, height:Float, ?centered:Bool=true) : hxcollision.shapes.Polygonsquare(x:Float, y:Float, width:Float, ?centered:Bool=true) : hxcollision.shapes.Polygontriangle(x:Float, y:Float, radius:Float) : hxcollision.shapes.Polygon -
- Properties - - >position : hxcollision.math.Vector - >rotation : Float - >scaleX : Float - >scaleY : Float - >transformedVertices : Array<hxcollision.math.Vector> - >vertices : Array<hxcollision.math.Vector> - >x : Float - >y : Float - -

Shape

- view -
- Members - active : Bool
data : Dynamic
name : String
tags : Map<String, String>
-
- Methods - destroy() : Voidnew(_x:Float, _y:Float) : Void -
- Properties - - position : hxcollision.math.Vector - rotation : Float - scaleX : Float - scaleY : Float - transformedVertices : Array<hxcollision.math.Vector> - vertices : Array<hxcollision.math.Vector> - x : Float - y : Float - -

+


+
search API (or start typing anywhere)

+
+ + + + +
+ + +

Packages

+

differ

+ +

   + data math sat shapes +


+

Types

+

no package

+

differ

Collision

ShapeDrawer

+
+ +

data





+

+

math

Matrix

Vector

+

+

sat

Common

SAT2D

+

+

shapes

Circle

Polygon

Ray

Shape

+


+
+

  -   

-
-

 
 

- \ No newline at end of file + diff --git a/docs/css/code.css b/docs/css/code.css index 48c6a5e..ac47cc6 100644 --- a/docs/css/code.css +++ b/docs/css/code.css @@ -80,12 +80,12 @@ pre { } code { - display: inline-block; - font-size: 0.79em; + display: inline; + font-size: 0.8em; padding-bottom: 0.1em; padding-left: 0.4em; padding-right: 0.4em; border-radius: 0.2em; - background-color: transparent; + background-color: transparent; white-space: pre; } \ No newline at end of file diff --git a/docs/css/font.css b/docs/css/font.css index abd423a..3e879b2 100644 --- a/docs/css/font.css +++ b/docs/css/font.css @@ -2,20 +2,64 @@ @font-face { font-family: 'dsm'; - src: url('droidsansmono.eot'); - src: url('droidsansmono.eot?#iefix') format('embedded-opentype'), - url('droidsansmono.woff') format('woff'), - url('droidsansmono.ttf') format('truetype'); + src: url('./font/droidsansmono.eot'); + src: url('./font/droidsansmono.eot?#iefix') format('embedded-opentype'), + url('./font/droidsansmono.woff') format('woff'), + url('./font/droidsansmono.ttf') format('truetype'); font-weight: normal; font-style: normal; } + @font-face { - font-family: 'osp'; - src: url('font.eot'); - src: url('font.eot?#iefix') format('embedded-opentype'), - url('font.woff') format('woff'), - url('font.ttf') format('truetype'); + font-family: 'cabin'; + src: url('./font/cabin-regular-webfont.eot'); + src: url('./font/cabin-regular-webfont.eot?#iefix') format('embedded-opentype'), + url('./font/cabin-regular-webfont.woff') format('woff'), + url('./font/cabin-regular-webfont.ttf') format('truetype'), + url('./font/cabin-regular-webfont.svg#cabinregular') format('svg'); font-weight: normal; font-style: normal; + +} + + +@font-face { + font-family: 'cabin'; + src: url('./font/cabin-semibold-webfont.eot'); + src: url('./font/cabin-semibold-webfont.eot?#iefix') format('embedded-opentype'), + url('./font/cabin-semibold-webfont.woff') format('woff'), + url('./font/cabin-semibold-webfont.ttf') format('truetype'), + url('./font/cabin-semibold-webfont.svg#cabinsemibold') format('svg'); + font-weight: 600; + font-style: normal; + +} + + +@font-face { + font-family: 'cabin'; + src: url('./font/cabin-medium-webfont.eot'); + src: url('./font/cabin-medium-webfont.eot?#iefix') format('embedded-opentype'), + url('./font/cabin-medium-webfont.woff') format('woff'), + url('./font/cabin-medium-webfont.ttf') format('truetype'), + url('./font/cabin-medium-webfont.svg#cabinmedium') format('svg'); + font-weight: 500; + font-style: normal; + +} + + + + +@font-face { + font-family: 'cabin'; + src: url('./font/cabin-bold-webfont.eot'); + src: url('./font/cabin-bold-webfont.eot?#iefix') format('embedded-opentype'), + url('./font/cabin-bold-webfont.woff') format('woff'), + url('./font/cabin-bold-webfont.ttf') format('truetype'), + url('./font/cabin-bold-webfont.svg#cabinbold') format('svg'); + font-weight: bold; + font-style: normal; + } \ No newline at end of file diff --git a/docs/css/font.eot b/docs/css/font.eot deleted file mode 100644 index b90fc13..0000000 Binary files a/docs/css/font.eot and /dev/null differ diff --git a/docs/css/font.ttf b/docs/css/font.ttf deleted file mode 100644 index a726374..0000000 Binary files a/docs/css/font.ttf and /dev/null differ diff --git a/docs/css/font.woff b/docs/css/font.woff deleted file mode 100644 index 351f0d6..0000000 Binary files a/docs/css/font.woff and /dev/null differ diff --git a/docs/css/font/cabin-bold-webfont.eot b/docs/css/font/cabin-bold-webfont.eot new file mode 100644 index 0000000..4dc84b5 Binary files /dev/null and b/docs/css/font/cabin-bold-webfont.eot differ diff --git a/docs/css/font/cabin-bold-webfont.svg b/docs/css/font/cabin-bold-webfont.svg new file mode 100644 index 0000000..d2e761f --- /dev/null +++ b/docs/css/font/cabin-bold-webfont.svg @@ -0,0 +1,1804 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/css/font/cabin-bold-webfont.ttf b/docs/css/font/cabin-bold-webfont.ttf new file mode 100644 index 0000000..f3a2aaf Binary files /dev/null and b/docs/css/font/cabin-bold-webfont.ttf differ diff --git a/docs/css/font/cabin-bold-webfont.woff b/docs/css/font/cabin-bold-webfont.woff new file mode 100644 index 0000000..093516e Binary files /dev/null and b/docs/css/font/cabin-bold-webfont.woff differ diff --git a/docs/css/font/cabin-medium-webfont.eot b/docs/css/font/cabin-medium-webfont.eot new file mode 100644 index 0000000..2532f09 Binary files /dev/null and b/docs/css/font/cabin-medium-webfont.eot differ diff --git a/docs/css/font/cabin-medium-webfont.svg b/docs/css/font/cabin-medium-webfont.svg new file mode 100644 index 0000000..27eace2 --- /dev/null +++ b/docs/css/font/cabin-medium-webfont.svg @@ -0,0 +1,1935 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/css/font/cabin-medium-webfont.ttf b/docs/css/font/cabin-medium-webfont.ttf new file mode 100644 index 0000000..059aa47 Binary files /dev/null and b/docs/css/font/cabin-medium-webfont.ttf differ diff --git a/docs/css/font/cabin-medium-webfont.woff b/docs/css/font/cabin-medium-webfont.woff new file mode 100644 index 0000000..cb2c180 Binary files /dev/null and b/docs/css/font/cabin-medium-webfont.woff differ diff --git a/docs/css/font/cabin-regular-webfont.eot b/docs/css/font/cabin-regular-webfont.eot new file mode 100644 index 0000000..7bd39f1 Binary files /dev/null and b/docs/css/font/cabin-regular-webfont.eot differ diff --git a/docs/css/font/cabin-regular-webfont.svg b/docs/css/font/cabin-regular-webfont.svg new file mode 100644 index 0000000..9ffa77c --- /dev/null +++ b/docs/css/font/cabin-regular-webfont.svg @@ -0,0 +1,1953 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/css/font/cabin-regular-webfont.ttf b/docs/css/font/cabin-regular-webfont.ttf new file mode 100644 index 0000000..49a0111 Binary files /dev/null and b/docs/css/font/cabin-regular-webfont.ttf differ diff --git a/docs/css/font/cabin-regular-webfont.woff b/docs/css/font/cabin-regular-webfont.woff new file mode 100644 index 0000000..de291c6 Binary files /dev/null and b/docs/css/font/cabin-regular-webfont.woff differ diff --git a/docs/css/font/cabin-semibold-webfont.eot b/docs/css/font/cabin-semibold-webfont.eot new file mode 100644 index 0000000..81d4f61 Binary files /dev/null and b/docs/css/font/cabin-semibold-webfont.eot differ diff --git a/docs/css/font/cabin-semibold-webfont.svg b/docs/css/font/cabin-semibold-webfont.svg new file mode 100644 index 0000000..984e6f3 --- /dev/null +++ b/docs/css/font/cabin-semibold-webfont.svg @@ -0,0 +1,1827 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/css/font/cabin-semibold-webfont.ttf b/docs/css/font/cabin-semibold-webfont.ttf new file mode 100644 index 0000000..4a9262c Binary files /dev/null and b/docs/css/font/cabin-semibold-webfont.ttf differ diff --git a/docs/css/font/cabin-semibold-webfont.woff b/docs/css/font/cabin-semibold-webfont.woff new file mode 100644 index 0000000..78d6d1c Binary files /dev/null and b/docs/css/font/cabin-semibold-webfont.woff differ diff --git a/docs/css/droidsansmono.eot b/docs/css/font/droidsansmono.eot similarity index 100% rename from docs/css/droidsansmono.eot rename to docs/css/font/droidsansmono.eot diff --git a/docs/css/droidsansmono.ttf b/docs/css/font/droidsansmono.ttf similarity index 100% rename from docs/css/droidsansmono.ttf rename to docs/css/font/droidsansmono.ttf diff --git a/docs/css/droidsansmono.woff b/docs/css/font/droidsansmono.woff similarity index 100% rename from docs/css/droidsansmono.woff rename to docs/css/font/droidsansmono.woff diff --git a/docs/css/font/stylesheet.css b/docs/css/font/stylesheet.css new file mode 100644 index 0000000..cc98498 --- /dev/null +++ b/docs/css/font/stylesheet.css @@ -0,0 +1,45 @@ +/* Generated by Font Squirrel (http://www.fontsquirrel.com) on July 30, 2014 */ + + + +@font-face { + font-family: 'cabinregular'; + src: url('cabin-regular-webfont.eot'); + src: url('cabin-regular-webfont.eot?#iefix') format('embedded-opentype'), + url('cabin-regular-webfont.woff') format('woff'), + url('cabin-regular-webfont.ttf') format('truetype'), + url('cabin-regular-webfont.svg#cabinregular') format('svg'); + font-weight: normal; + font-style: normal; + +} + + + + +@font-face { + font-family: 'cabinmedium'; + src: url('cabin-medium-webfont.eot'); + src: url('cabin-medium-webfont.eot?#iefix') format('embedded-opentype'), + url('cabin-medium-webfont.woff') format('woff'), + url('cabin-medium-webfont.ttf') format('truetype'), + url('cabin-medium-webfont.svg#cabinmedium') format('svg'); + font-weight: normal; + font-style: normal; + +} + + + + +@font-face { + font-family: 'cabinbold'; + src: url('cabin-bold-webfont.eot'); + src: url('cabin-bold-webfont.eot?#iefix') format('embedded-opentype'), + url('cabin-bold-webfont.woff') format('woff'), + url('cabin-bold-webfont.ttf') format('truetype'), + url('cabin-bold-webfont.svg#cabinbold') format('svg'); + font-weight: normal; + font-style: normal; + +} \ No newline at end of file diff --git a/docs/css/omnibar.css b/docs/css/omnibar.css new file mode 100644 index 0000000..34eced0 --- /dev/null +++ b/docs/css/omnibar.css @@ -0,0 +1,47 @@ +#omnibar { + position: fixed; + display: block; + width: 50em; + top:4em; + left:50%; + margin-left:-24em; + height:3.5em; + background:#fff; + border-radius: 0.3em; + border:solid 1px #ddd; + box-shadow: 0 0 2em rgba(0,0,0,0.2); +} + +#omnibar input { + width: 42em !important; + margin-left:auto; + margin-right:auto; + position: relative; + display: block; + height:1em; + top:0.6em; + padding:0.5em; + font-size: 1em; + border-radius: 0.3em; + border: solid 1px; +} + +#omnibar_close { + cursor: pointer; + background:url(../images/close.png); + background-repeat:no-repeat; + background-size: 2em; + width: 2em; + height: 2em; + left: 50%; + margin-left: -24.25em; + margin-top: 0.7em; + display: block; + position: absolute; +} + +.tooltipster-shadow .tooltipster-content { + max-height: 20em; + overflow-y:auto; + line-height: 1.5em; +} \ No newline at end of file diff --git a/docs/css/style.css b/docs/css/style.css index e39025a..a939887 100644 --- a/docs/css/style.css +++ b/docs/css/style.css @@ -1,13 +1,18 @@ body,html { - font-family: helvetica; + font-family: helvetica, sans-serif; color:#3c3c3c; + /*font-size: 0.95em;*/ +} + +strong { + color:#000; } h1,h2,h3,h4,h5,h6 { - font-family: osp; + font-family: cabin, sans-serif; + font-weight:bold; font-size:3em; - letter-spacing: -0.01em; margin: 0.2em; margin-left: 0em; padding: 0; @@ -19,6 +24,159 @@ h4 { font-size: 1.1em; } h5 { font-size: 1em; } h6 { font-size: 0.9em; } +h3 a { + color:#242424; +} + +h3 a:hover { + cursor: pointer; + color:#6C6E6F; +} + +a h3 { + color:#242424; +} + +a:hover h3 { + cursor: pointer; + color:#4ecc8c; +} +a h2 { + color:#242424; +} + +a:hover h2 { + cursor: pointer; + color:#4ecc8c; +} + +#search_bar { + display: block; + width: 100%; + height: 2.2em; + line-height: 2.4em; + padding-left:3em; + background:url(../images/search.png); + background-repeat:no-repeat; +} + +.package-root span { + padding-left: 0.5em; +} + +.package-root { + margin-top:0.8em; + margin-left:1em; +} + +.topmenu { + text-align: right; + margin-right: 1.1em; + margin-bottom: 0.5em; + display: block; + position: relative; + height: 1.5em; +} + +.topmenu img { + display: inline-block; + height: 18px; + vertical-align: bottom; +} + + +.version { + border-top: 1px solid rgba(0,0,0,0); + color:#CFCFCF; + font-size: 0.75em; + text-align: right; + margin-right: 1.7em; + margin-bottom: -2.5em; + margin-top: 1em; + vertical-align: middle; + position: relative; + display: block; +} + +.version code { + padding: 0; + padding-top: 0.1em; + padding-bottom: 0.2em; + padding-right: 0.5em; + /*margin-top: -0.05em;*/ +} + +.haxedesc { + text-align: right; + width: 100%; + position: relative; + display: block; +} + +.small-image { + margin-left: auto; + margin-right: auto; + display: block; + float:right; + position: relative; + width: auto; + margin-left: 0.5em; + height: 3em; + text-align: right; + vertical-align: baseline; + z-index: 1; +} + +#logo { + width: 100%; + display: block; + border: solid 1px #4ecc8c; +} +#logo img { + position: relative; + display: block; + margin-left:auto; +} + +.package-node { + line-height: 1.2em; + display: inline-block; +} + +.clear { + clear: both; +} + +.guide a { + font-size: 1.2em; + display:inline-block; + margin: 0.2em; + color:#058FC8; +} + +.center { + margin-left:auto; + margin-right:auto; + display: block; +} + +.breakout { + margin-top: 1em; + margin-bottom: 1em; + height:3em; + /*color:#fff;*/ + /*background-color:#4ecc8c;*/ + font-size: 1.6em; + text-align: center; +} + +.breakout a { + /*color:#fff;*/ + margin-left: 1.2em; + margin-right: 1.2em; + line-height: 3.4em; +} + img { clear: both; display: block; @@ -28,12 +186,19 @@ hr { border-top: 1px solid #ECECEC; } +li { + line-height: 1.3em; +} li { - font-size: 1em; - letter-spacing: -0.05em; + font-size: 1.0em; + letter-spacing: 0em; max-width: 80%; - color:#999; + color:#607681; +} + +img { + max-width: 45em; } b { @@ -44,14 +209,10 @@ b { overflow: hidden; } -strong { - color:#797979; -} - a { text-decoration: none; - font-size: 0.9em; - color:#3E9C21; + font-size: 1em; + color:#4ecc8c; border:0; outline: 0; } @@ -85,13 +246,13 @@ a:hover { display: inline-block; margin-left:1em; font-size:0.9em; - margin-bottom: 0.6em; + margin-bottom: 0.6em; } .lift { - margin-bottom: -0.4em; - display: block; + display: inline-block; + position: relative; margin-left: -0.5em; } @@ -109,7 +270,7 @@ a.liftsmall { line-height: 1.4em; margin-left: 1em; margin-right: 0.5em; - font-size: 0.85em; + font-size: 0.9em; top: -0.6em; margin-bottom: 1em; opacity: 0.8; @@ -130,7 +291,7 @@ a.liftsmall { } /*.small_desc_flat:hover {*/ - /*#3E9C21*/ + /*#f6007b*/ /*}*/ .warn { @@ -140,16 +301,36 @@ a.liftsmall { padding:0.5em; } +li code { + font-size: 0.8em; + padding: 0; + margin: 0; + border: 0; + background-color: transparent; + color:#f6007b; +} + + + .indent { - padding-left: 1.5em; + padding-left: 1em; display: block; } +.package_item { + margin: 0; + padding: 0; + text-align: justify; + white-space: pre; +} + p { color:#858585; + font-size: 1.04em; + letter-spacing:0.0em; margin: 0.8em; margin-left:0.5em; - line-height:1.4em; + line-height:1.3em; } .section { @@ -186,9 +367,9 @@ p { .sample { - width:645px; - height:450px; - background:#ff4b03; + width:645px; + height:450px; + background:#ff4b03; } .sample p { @@ -197,10 +378,10 @@ p { -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; -user-select: none; +user-select: none; color:#f0f0f0; font-size: 2em; - font-family: osp; + font-family: cabin, sans-serif; text-align: center; line-height: 450px; } @@ -210,6 +391,7 @@ user-select: none; margin-right: 0.9em; position: relative; display: inline-block; + vertical-align: middle; } .content { @@ -234,31 +416,30 @@ user-select: none; color:#242424; border:solid 1px rgba(0,0,0,0.1); font-size: 0.9em; - padding-bottom: 0.1em; + padding-bottom: 0.05em; padding-left: 0.4em; padding-right: 0.4em; border-radius: 0.2em; - display: block; - width: 2.3em; - margin-top:1em; - margin-bottom:-1em; + margin-left:0.5em; + vertical-align: bottom; } .member, .method, .property { color:#666; - display: block; + display: block; line-height: 1.3em; font-size: 1em; } .signature.apipage { - margin-top:1.6em; + margin-top:0.4em; margin-left: 0.5em; margin-bottom: 1.3em; + display: inline-block; } .small_desc_flat code { - color:#3E9C21; + color:#f6007b; margin-top: -0.1em; } @@ -276,14 +457,18 @@ user-select: none; .inherited { cursor: pointer; - font-size:0.5em; - font-family:'dsm',monospace; - border-radius:0.1em; - height:auto; margin: 0.1em; - margin-right:0.1em; - padding-left: 0.5em; - padding-right: 0.5em; - color:#3E9C21; border:solid 1px rgba(39,40,34,0.3); + font-size: 0.5em; + font-family: 'dsm',monospace; + border-radius: 0.1em; + height: 1.5em; + margin: 0.1em; + margin-right: 0.1em; + padding-left: 0.5em; + top: -0.3em; + margin-left: 1em; + position: relative; + padding-right: 0.5em; + color:#f6007b; border:solid 1px rgba(39,40,34,0.3); } .section_title { diff --git a/docs/images/close.png b/docs/images/close.png new file mode 100644 index 0000000..8863b3e Binary files /dev/null and b/docs/images/close.png differ diff --git a/docs/images/favicon.png b/docs/images/favicon.png new file mode 100644 index 0000000..27c0eeb Binary files /dev/null and b/docs/images/favicon.png differ diff --git a/docs/images/search.png b/docs/images/search.png new file mode 100644 index 0000000..258a246 Binary files /dev/null and b/docs/images/search.png differ diff --git a/docs/index.html b/docs/index.html index e83d183..4ec9ed4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,17 +1,18 @@ - + + snow - - + - + @@ -39,8 +40,13 @@ $(this).html(' ') }); - $('.tooltip').tooltipster({ + $('.tooltip').each(function(e){ + var c = $(this).attr('data-tooltip'); + $(this).tooltipster({ + content:$('' + c + ''), + interactive:true, theme:'tooltipster-shadow' + }); }); }); //document.ready @@ -56,112 +62,19 @@

About

A Separating Axis Theorom collision library for haxe

haxe


-

Demo

- -

Facts

- -

Other notes

- -

More Notes

- -

Quick look

-

A simple collision example

-
var circle = new Circle( 300, 200, 50 );
-var box = Polygon.rectangle( 0, 0, 50, 150 );
-
-box.rotation = 45;
-
-var collideInfo = Collision.test( circle, box );
-
-if(collideInfo != null) {
-    //use collideInfo.separation.x
-    //use collideInfo.separation.y
-}
-

-

Documentation

-

View API

+

View API


Getting Started

-

haxelib install hxcollision

+

haxelib install differ

or

-

haxelib git hxcollision https://github.com/underscorediscovery/hxcollision.git

+

haxelib git differ https://github.com/underscorediscovery/differ.git

or git clone the repo, from here. Then use

-

haxelib dev hxcollision /path/to/repo

+

haxelib dev differ /path/to/repo

Building the usage examples

To build the usage examples in the test/ folder :

-

Main Contributors

- -

Recent changes

-

1.1.0 (Latest release, haxelib)

- -

1.0.4

- -

1.0.3

- -

1.0.2

- -

1.0.1

- -

1.0.0

-

 

@@ -169,4 +82,4 @@

Recent changes

- \ No newline at end of file + diff --git a/docs/js/omnibar.js b/docs/js/omnibar.js new file mode 100644 index 0000000..75f4b2e --- /dev/null +++ b/docs/js/omnibar.js @@ -0,0 +1,116 @@ + +$(document).ready(function() { + + //hide by default + $('#omnibar').hide(); + + //if the list is not found, nothing happens + var list_node = $('#typelist'); + if(list_node.length) { + + var relpath = ''; + var omnibar_visible = false; + + var close_omnibar = function() { + if(omnibar_visible) { + omnibar_visible = false; + $('#omnibar_text').val(''); + $('#omnibar_text').blur(); + $('#omnibar').hide(); + $('#omnibar_text').tooltipster('hide'); + } + } //close_omnibar + + var focus_omnibar = function(e) { + + if(e && e.keyCode) { + switch(e.keyCode) { + case 32: + case 37: + case 38: + case 39: + case 40: + return; + break; + } + } + + if(!omnibar_visible) { + omnibar_visible = true; + $('#omnibar').show(); + } + + $('#omnibar_text').focus(); + $('#omnibar_text').tooltipster('show'); + + } //focus_omnibar + + //on any keypress, show if hidden, or focus if showing + $('body').on('keypress', focus_omnibar); + $('#search_bar').on('click', focus_omnibar); + $('#omnibar_close').on('click', close_omnibar); + + //list of types + var list = list_node.attr('data-types'); + list = list.split(','); + //fetch the relative path + relpath = list_node.attr('data-relpath'); + + //create the tooltip to display the types + $('#omnibar_text').tooltipster({ + + position : 'bottom', + trigger : 'click', + interactive:true, + minWidth:500, + content:$('start typing...'), + theme:'tooltipster-shadow' + + }); //create tooltipster + + //hide on escape + $('body').on('keyup', function(e) { + + if(e.keyCode == 27) { + close_omnibar(); + } + + }); //keyup + + //on text input + $('#omnibar_text').on('input', function(e) { + + var val = $('#omnibar_text').val(); + + //if value typed in + if(val) { + + var results = list.filter(function(a){ + var reg = new RegExp( val,'gi'); + return reg.exec(a); + }); //filter by types + + results = results.map(function(_type){ + var _link = relpath + 'api/' + _type.replace(/\./gi, '/') + '.html'; + _type = '' + _type + '' ; + return _type; + }); //map to the link types + + if(results.length) { + val = results.join('
'); + } else { + val = 'no results'; + } + + } else { + val = 'start typing...'; + } + + //set the content + $('#omnibar_text').tooltipster('content', $( '' + val + '')); + + }); // input + + } //if list node found + +}); //document ready diff --git a/docs/js/release.version.js b/docs/js/release.version.js new file mode 100644 index 0000000..10821a1 --- /dev/null +++ b/docs/js/release.version.js @@ -0,0 +1,63 @@ + +var get_github_latest_release = function(options) { + + function _fetch_done(res) { + + var err; + + if(res && res.status != 404 && res.length) { + var release = res[0]; + + var _release_date = new Date(release.published_at); + _release_date = _release_date.toUTCString(); + + if(options.selector_tag) { + var node = $(options.selector_tag); + if(node.length) { + //set the attribute the download + node.attr('href', release.html_url); + node.attr('title', _release_date ); + node.text(release.tag_name); + } + } + + if(options.selector_notes_link) { + var node = $(options.selector_notes_link); + if(node.length) { + node.attr('href', release.html_url); + } + } + + } else { + err = 'status:' + res.status; + } + + if(options.done) { + options.done(err, res); + } + + } //_fetch_done + + if(!options.user || !options.repo) { + return; + } + + $.ajax({ type: "GET", url: "https://api.github.com/repos/" + options.user + "/" + options.repo + "/releases" }) + .done(_fetch_done) + .fail(_fetch_done); + +} //get_latest_release_version + +$(document).ready(function() { + + get_github_latest_release({ + user:'underscorediscovery', + repo:'differ', + selector_notes_link:'#version_notes_link', + selector_tag:'#version_tag', + done : function() { + $('#version_tag').tooltipster({ theme:'tooltipster-shadow' }); + } + }); + +}); \ No newline at end of file