planck-js
Version:
2D JavaScript physics engine for cross-platform HTML5 game development
52 lines (28 loc) • 983 B
Markdown
[Planck.js API Doc](../README.md) › [Globals](../globals.md) › [Position](position.md)
# Class: Position
## Hierarchy
* **Position**
## Index
### Properties
* [a](position.md#a)
* [c](position.md#c)
### Methods
* [getTransform](position.md#gettransform)
## Properties
### a
• **a**: *number*
*Defined in [common/index.d.ts:26](https://github.com/shakiba/planck.js/blob/038d425/lib/common/index.d.ts#L26)*
___
### c
• **c**: *[Vec2](vec2.md)*
*Defined in [common/index.d.ts:25](https://github.com/shakiba/planck.js/blob/038d425/lib/common/index.d.ts#L25)*
## Methods
### getTransform
▸ **getTransform**(`xf`: [Transform](transform.md), `p`: [Vec2](vec2.md)): *[Transform](transform.md)*
*Defined in [common/index.d.ts:27](https://github.com/shakiba/planck.js/blob/038d425/lib/common/index.d.ts#L27)*
**Parameters:**
Name | Type |
------ | ------ |
`xf` | [Transform](transform.md) |
`p` | [Vec2](vec2.md) |
**Returns:** *[Transform](transform.md)*