Table of Contents

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

position Vector2

The position

rotation float

The rotation

scale Vector2

The scale

Fields

Position

The

public Vector2 Position

Field Value

Vector2

Rotation

The

public float Rotation

Field Value

float

Scale

The scale

public Vector2 Scale

Field Value

Vector2

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

position Vector2

The position.

angle float

The angle.

SetIdentity()

Set this to the identity transform.

public void SetIdentity()