Skip to content
Daisuke YAMAGUCHI edited this page Oct 26, 2015 · 47 revisions

要約

ベクトルを扱うためのクラスです。これは Open CASCADE の gp_Vec クラスの機能をラッピングしたクラスであり、Ruby の Vector クラスとは別のものです。

クラスメソッド

  • new(x, y, z) -> Vec
  • zero -> Vec, origin -> Vec
  • xdir -> Vec, ydir -> Vec, zdir -> Vec

インスタンスメソッド

  • self == other -> bool
  • self + other -> Vec
  • self - other -> Vec
  • -self -> Vec
  • self * float -> Vec
  • self / float -> Vec

Clone this wiki locally