IPrimitive

Chameleon\Primitives\IPrimitive

  • This is an interface
  • Interface name: IPrimitive
  • Namespace: Chameleon\Primitives
  • Fully qualified class name: Chameleon\Primitives\IPrimitive

Methods

getPosition()

Vector2 IPrimitive::getPosition()

Get Primitive position

Arguments

None.


setPosition()

IPrimitive IPrimitive::setPosition(Vector2 $point)

Set the position of this primitive

Arguments

  • $point Vector2 - <p>The position vector</p>

draw()

IPrimitive IPrimitive::draw(Image $image)

Draw this primitive onto the image

Arguments

  • $image Image - No description available.