Struct Transform
- Namespace
- Alis.Core.Physic.Common
- Assembly
- Alis.dll
A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.
public struct Transform
Inherited Members
Constructors
Transform(Vector2, Complex)
Initialize using a position vector and a Complex rotation.
public Transform(Vector2 position, Complex rotation)
Parameters
Transform(Vector2, float)
Initialize using a position vector and a rotation.
public Transform(Vector2 position, float angle)
Parameters
Fields
p
The
public Vector2 p
Field Value
q
The
public Complex q
Field Value
Properties
Identity
Gets the value of the identity
public static Transform Identity { get; }
Property Value
Methods
Divide(Vector2, ref Transform)
Divides the left
public static Vector2 Divide(Vector2 left, ref Transform right)
Parameters
Returns
- Vector2
-
The vector
Divide(ref Vector2, ref Transform)
Divides the left
public static Vector2 Divide(ref Vector2 left, ref Transform right)
Parameters
Returns
- Vector2
-
The vector
Divide(Vector2, ref Transform, out Vector2)
Divides the left
public static void Divide(Vector2 left, ref Transform right, out Vector2 result)
Parameters
Divide(ref Transform, ref Transform)
Divides the left
public static Transform Divide(ref Transform left, ref Transform right)
Parameters
Returns
- Transform
-
The transform
Divide(ref Transform, ref Transform, out Transform)
Divides the left
public static void Divide(ref Transform left, ref Transform right, out Transform result)
Parameters
Divide(ref Transform, Complex, out Transform)
Divides the left
public static void Divide(ref Transform left, Complex right, out Transform result)
Parameters
Multiply(Vector2, ref Transform)
Multiplies the left
public static Vector2 Multiply(Vector2 left, ref Transform right)
Parameters
Returns
- Vector2
-
The vector
Multiply(ref Vector2, ref Transform)
Multiplies the left
public static Vector2 Multiply(ref Vector2 left, ref Transform right)
Parameters
Returns
- Vector2
-
The vector
Multiply(ref Transform, ref Transform)
Multiplies the left
public static Transform Multiply(ref Transform left, ref Transform right)
Parameters
Returns
- Transform
-
The transform
Multiply(ref Transform, Complex, out Transform)
Multiplies the left
public static void Multiply(ref Transform left, Complex right, out Transform result)