Transform
Declaration
public struct tainicom.Aether.Physics2D.Common.Transform
A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.
Constructors
Transform
Initialize using a position vector and a Complex rotation.
void Transform(Vector2 position, Complex rotation)
Parameters:
| Name | Type | Description |
|---|---|---|
position |
Strawberry.Math.Vector2 |
The position. |
rotation |
tainicom.Aether.Physics2D.Common.Complex |
The rotation |
Transform
Initialize using a position vector and a rotation.
void Transform(Vector2 position, float angle)
Parameters:
| Name | Type | Description |
|---|---|---|
position |
Strawberry.Math.Vector2 |
The position. |
angle |
System.Single |
The rotation angle |
Properties
Identity static
Transform Identity { get }
Fields
q
Complex q
p
Vector2 p
Methods
Multiply static
Vector2 Multiply(Vector2 left, ref Transform right)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
Strawberry.Math.Vector2 |
|
right |
ref tainicom.Aether.Physics2D.Common.Transform |
Multiply static
Vector2 Multiply(ref Vector2 left, ref Transform right)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
ref Strawberry.Math.Vector2 |
|
right |
ref tainicom.Aether.Physics2D.Common.Transform |
Divide static
Vector2 Divide(Vector2 left, ref Transform right)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
Strawberry.Math.Vector2 |
|
right |
ref tainicom.Aether.Physics2D.Common.Transform |
Divide static
Vector2 Divide(ref Vector2 left, ref Transform right)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
ref Strawberry.Math.Vector2 |
|
right |
ref tainicom.Aether.Physics2D.Common.Transform |
Divide static
void Divide(Vector2 left, ref Transform right, out Vector2 result)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
Strawberry.Math.Vector2 |
|
right |
ref tainicom.Aether.Physics2D.Common.Transform |
|
result |
out Strawberry.Math.Vector2 |
Multiply static
Transform Multiply(ref Transform left, ref Transform right)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
ref tainicom.Aether.Physics2D.Common.Transform |
|
right |
ref tainicom.Aether.Physics2D.Common.Transform |
Divide static
Transform Divide(ref Transform left, ref Transform right)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
ref tainicom.Aether.Physics2D.Common.Transform |
|
right |
ref tainicom.Aether.Physics2D.Common.Transform |
Divide static
void Divide(ref Transform left, ref Transform right, out Transform result)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
ref tainicom.Aether.Physics2D.Common.Transform |
|
right |
ref tainicom.Aether.Physics2D.Common.Transform |
|
result |
out tainicom.Aether.Physics2D.Common.Transform |
Multiply static
void Multiply(ref Transform left, Complex right, out Transform result)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
ref tainicom.Aether.Physics2D.Common.Transform |
|
right |
tainicom.Aether.Physics2D.Common.Complex |
|
result |
out tainicom.Aether.Physics2D.Common.Transform |
Divide static
void Divide(ref Transform left, Complex right, out Transform result)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
ref tainicom.Aether.Physics2D.Common.Transform |
|
right |
tainicom.Aether.Physics2D.Common.Complex |
|
result |
out tainicom.Aether.Physics2D.Common.Transform |