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 : ISerializableImplements
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 PositionField Value
Rotation
The
public float RotationField Value
Scale
The scale
public Vector2 ScaleField Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
Gets the object data using the specified info
public void GetObjectData(SerializationInfo info, StreamingContext context)Parameters
infoSerializationInfo- 
The info
 contextStreamingContext- 
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()