Vec2_c.kl

Types

Vec2_c (struct)

The Vec2_c type represents a vector with 2 components. The Vec2_c is also used as the row type for the Mat22.

参考

Vec3, Vec4

/*
** Example: Vec2_c
*/

Vec2_c v(0.0, 0.0);

Members

Complex x  
Complex y  

Methods

  Vec2_c ( in Complex value )
  Vec2_c ( in Complex x, in Complex y )
  Vec2_c ( in Vec2_c other )
  Vec2_c ()
Vec2_c add ? ( in Vec2_c other )
Boolean almostEqual ? ( in Vec2_c other )
Boolean almostEqual ? ( in Vec2_c other, in Float32 precision )
Vec2_c clone ? ()
Complex component ? ( in Size i )
Complex cross ? ( in Vec2_c other )
Complex distanceTo ? ( in Vec2_c other )
Vec2_c divide ? ( in Vec2_c other )
Vec2_c divideComplex ? ( in Complex other )
Complex dot ? ( in Vec2_c other )
Boolean equal ? ( in Vec2_c other )
UInt32 hash ? ()
Vec2_c inverse ? ()
Complex length ? ()
Complex lengthSquared ? ()
Vec2_c linearInterpolate ? ( in Vec2_c other, in Complex t )
Vec2_c multiply ? ( in Vec2_c other )
Vec2_c multiplyComplex ? ( in Complex other )
Vec2_c negate ? ()
  normalize ! ()
  set ! ( in Complex value )
  set ! ( in Complex x, in Complex y )
  setComponent ! ( in Size i, in Complex v )
  setNull ! ()
Complex setUnit ! ()
Vec2_c subtract ? ( in Vec2_c other )
Vec2_c unit ? ()
Vec2_c unit_safe ? ()

Operators

  - Vec2_c
Vec2_c = ( Param other )