Struct Transform
- Namespace
- Alis.Core.Aspect.Math
- Assembly
- Alis.dll
A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.
[Serializable]
public struct Transform : ISerializable
Implements
Inherited Members
Constructors
Transform(Vector2, float, Vector2)
Initializes a new instance of the Alis.Core.Aspect.Math.Transform class
public Transform(Vector2 position, float rotation, Vector2 scale)
Parameters
Fields
Position
The
public Vector2 Position
Field Value
Rotation
The
public float Rotation
Field Value
Scale
The scale
public Vector2 Scale
Field Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
Gets the object data using the specified info
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfo-
The info
context
StreamingContext-
The context
Set(Vector2, float)
Set this based on the position and angle.
public void Set(Vector2 position, float angle)
Parameters
SetIdentity()
Set this to the identity transform.
public void SetIdentity()