70 lines
1.3 KiB
Markdown
70 lines
1.3 KiB
Markdown
[Planck.js API Doc](../README.md) › [Globals](../globals.md) › [Position](position.md)
|
||
|
||
# Class: Position
|
||
|
||
## Hierarchy
|
||
|
||
* **Position**
|
||
|
||
## Index
|
||
|
||
### Constructors
|
||
|
||
* [constructor](position.md#constructor)
|
||
|
||
### Properties
|
||
|
||
* [a](position.md#a)
|
||
* [c](position.md#c)
|
||
|
||
### Methods
|
||
|
||
* [getTransform](position.md#gettransform)
|
||
|
||
## Constructors
|
||
|
||
### constructor
|
||
|
||
\+ **new Position**(): *[Position](position.md)*
|
||
|
||
*Defined in [src/dynamics/Position.ts:35](https://github.com/shakiba/planck.js/blob/acc3bd8/src/dynamics/Position.ts#L35)*
|
||
|
||
**Returns:** *[Position](position.md)*
|
||
|
||
## Properties
|
||
|
||
### a
|
||
|
||
• **a**: *number*
|
||
|
||
*Defined in [src/dynamics/Position.ts:35](https://github.com/shakiba/planck.js/blob/acc3bd8/src/dynamics/Position.ts#L35)*
|
||
|
||
angle
|
||
|
||
___
|
||
|
||
### c
|
||
|
||
• **c**: *[Vec2](vec2.md)*
|
||
|
||
*Defined in [src/dynamics/Position.ts:32](https://github.com/shakiba/planck.js/blob/acc3bd8/src/dynamics/Position.ts#L32)*
|
||
|
||
location
|
||
|
||
## Methods
|
||
|
||
### getTransform
|
||
|
||
▸ **getTransform**(`xf`: [Transform](transform.md), `p`: [Vec2](vec2.md)): *[Transform](transform.md)*
|
||
|
||
*Defined in [src/dynamics/Position.ts:42](https://github.com/shakiba/planck.js/blob/acc3bd8/src/dynamics/Position.ts#L42)*
|
||
|
||
**Parameters:**
|
||
|
||
Name | Type |
|
||
------ | ------ |
|
||
`xf` | [Transform](transform.md) |
|
||
`p` | [Vec2](vec2.md) |
|
||
|
||
**Returns:** *[Transform](transform.md)*
|