Class Vector
In: lib/zyps.rb
Parent: Object

An object or force‘s velocity. Has speed and angle components.

Methods

+   new   pitch   pitch=   x   x=   y   y=  

Attributes

speed  [RW]  The length of the Vector.

Public Class methods

Public Instance methods

Add this Vector to vector2, returning a new Vector. This operation is useful when calculating the effect of wind or thrust on an object‘s current heading.

The angle along the X/Y axes.

The X component.

The Y component.

[Validate]