GH_Motion

public class GH_Motion
Provides functionality for individual rectangle animation.

Constructors

GH_Motion

#
Constructor. Create a new stack keyframe animator.
public GH_Motion(
Rectangle
rec_0,
Initial dimensions of stack element.
Rectangle
rec_1,
Final dimensions of stack element.
duration
The duration, in milliseconds, for the animation
)

GH_Motion

#
Constructor. Create a new stack keyframe animator.
public GH_Motion(
Rectangle
rec_0,
Initial dimensions of stack element.
Rectangle
rec_1,
Final dimensions of stack element.
time_0,
Time start override (in system time ticks).
time_1
Time stop override (in system time ticks).
)

Properties

CurrentBox

#
Gets the rectangle that describes the shape of the box at the current instant.
public Rectangle CurrentBox { get; }

FinalBox

#
Gets the dimensions of the stack box at t=1
public Rectangle FinalBox { get; }

InitialBox

#
Gets the dimensions of the stack box at t=0
public Rectangle InitialBox { get; }

InMotion

#
Gets the motion state of this object.
public bool InMotion { get; }

Interpolation

#
Gets or sets the interpolation method for blending frames.
public GH_Interpolation Interpolation { get; set; }

Parameter

#
Gets the normalised time frame parameter for the current instant.
public double Parameter { get; }

t0

#
Gets the start time for this animation.
public long t0 { get; }

t1

#
Gets the stop time for this animation.
public long t1 { get; }

Methods

ResizeContainer

#
Call this function to override the width or height without interfering with the animation.
public void ResizeContainer(
Rectangle
region,
New region.
fit_horizontal,
If True, all the elements will be fit to the region horizontally.
fit_vertical
If True, all the elements will be fit to the region vertically.
)