Method: Math2D::Vector2D#y_heading

Defined in:
lib/math2d/vector2d.rb

#y_headingFloat

Returns the y-heading angle of self in radians. The y-heading angle is the angle formed between self and the y-axis.

Returns:

  • (Float)


319
320
321
# File 'lib/math2d/vector2d.rb', line 319

def y_heading
  Utils2D::HALF_PI - heading
end