Transformable.setOrigin

Sets the origin. The origin is a offset which is added to the position and serves as center position for scaling and rotation.

Note: If you use this with setRotationCenter the origin will suppress the rotation center and takes it's place.

  1. void setOrigin(float x, float y)
    class Transformable
    final @nogc
    void
    setOrigin
    pure nothrow
    (
    float x
    ,
    float y
    )
  2. void setOrigin(const Vector2f origin)

Meta