Sha256: 056810441d627885e8a35c9b3151ee0be70fdda458aa1a4c82b031c2c25828e1

Contents?: true

Size: 895 Bytes

Versions: 4

Compression:

Stored size: 895 Bytes

Contents

//
//  B2DPolygonShape.h
//  Box2D
//
//  Created by Juan Jose Karam on 2/18/13.
//  Copyright (c) 2013 Joybox. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "B2DShape.h"

@interface B2DPolygonShape : B2DShape

@property (nonatomic, assign, readonly) NSInteger vertexCount;
@property (nonatomic, assign, readonly) CGPoint centroid;
@property (nonatomic, assign, readonly) CGPoint *vertices;
@property (nonatomic, assign, readonly) CGPoint *normals;

- (id)initWithVertices:(CGPoint *)vertices andVertexCount:(NSInteger)vertexCount;
- (id)initWithHalfWidth:(CGFloat)halfWidth andHalfHeight:(CGFloat)halfHeight;
- (id)initWithHalfWidth:(CGFloat)halfWidth halfHeight:(CGFloat)halfHeight center:(CGPoint)center andAngle:(CGFloat)angle;

- (CGPoint)getVertex:(NSInteger)index;

#pragma mark - Deprecated

- (id)initWithBoxSize:(CGSize)boxSize __attribute__ ((deprecated));

@end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
joybox-1.1.1 vendor/vendor-ios/box_2d/box_2d_include/B2DPolygonShape.h
joybox-1.1.1 vendor/vendor-osx/box_2d/box_2d_include/B2DPolygonShape.h
joybox-1.1.0 vendor/vendor-ios/box_2d/box_2d_include/B2DPolygonShape.h
joybox-1.1.0 vendor/vendor-osx/box_2d/box_2d_include/B2DPolygonShape.h