Show / Hide Table of Contents

Interface ITransformable

Represents a fluent interface object that is in a drawable state, but can also be scaled and rotated in addition to the operations possible on a IConstructedDrawable type Contains methods for those scaling and rotation operations The fluent type interface is designed for simple, rapid, iterative shape drawing

Inherited Members
IConstructedDrawable.SubmitDraw(IDrawStage, CoordinateSpace, Single, Int32)
IConstructedDrawable.GenerateDrawRequest(CoordinateSpace, Single, Int32)
IConstructedDrawable.ChangePosition(Vector2)
IConstructedDrawable.ShiftPosition(Vector2)
IConstructedDrawable.ChangeColour(Colour)
IConstructedDrawable.ChangeTexture0(ITexture)
IConstructedDrawable.ChangeTexture1(ITexture)
Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public interface ITransformable : IConstructedDrawable

Methods

Rotate(Single)

Return a drawable (transformable) shape object with identical parameters except rotated

Declaration
ITransformable Rotate(float angle_clockwise_radians)
Parameters
Type Name Description
System.Single angle_clockwise_radians

Angle to rotate the shape

Returns
Type Description
ITransformable

Scale(Single, Single)

Declaration
ITransformable Scale(float xScaling, float yScaling)
Parameters
Type Name Description
System.Single xScaling
System.Single yScaling
Returns
Type Description
ITransformable
In This Article
Back to top yak2D - Alex Paterson