Public Member Functions | Public Attributes

psastras::engine::utils::math::Vec2F Class Reference

List of all members.

Public Member Functions

 Vec2F (float d0, float d1)
 Vec2F (Vec2F v2f)
final Vec2F add (Vec2F rhs)
final Vec2F addEq (Vec2F rhs)
final Vec2F sub (Vec2F rhs)
final Vec2F subEq (Vec2F rhs)
final Vec2F mul (Vec2F rhs)
final Vec2F mulEq (Vec2F rhs)
final Vec2F scale (float rhs)
final Vec2F scaleEq (float rhs)
final Vec2F div (Vec2F rhs)
final Vec2F divEq (Vec2F rhs)
final float dot (Vec2F rhs)
final float length2 ()
final float length ()
final float min ()
final float max ()
final boolean isEqual (Vec2F rhs)
final float distance2 (Vec2F rhs)
final float distance (Vec2F rhs)
final Vec2F rotateCWEq (Vec2F center, float thetaDegrees)
final Vec2F rotateCW (Vec2F center, float thetaDegrees)
final Vec2F rotateCCWEq (Vec2F center, float thetaDegrees)
final Vec2F rotateCCW (Vec2F center, float thetaDegrees)
String toString ()

Public Attributes

float x
float y

Detailed Description

Defines a generic 2D vector and useful operations.

Author:
psastras

The documentation for this class was generated from the following file:
 All Classes Functions Variables