Class: MathGL::MglPoint
- Inherits:
-
Object
- Object
- MathGL::MglPoint
- Defined in:
- lib/mathgl/doc/libdoc_other_en.rb,
ext/mathgl/mathgl.cxx
Overview
Proxy of C++ MathGL::MglPoint class
Instance Method Summary collapse
-
#&(b) ⇒ MglPoint
The part of a which is perpendicular to vector b.
-
#*(b) ⇒ MglPoint
Scalar product of vectors.
-
#+(b) ⇒ MglPoint
Point of summation (summation of vectors).
-
#-(b) ⇒ MglPoint
Point of difference (difference of vectors).
-
#/(b) ⇒ MglPoint
Return vector of element-by-element product.
-
#^(b) ⇒ MglPoint
Cross-product of vectors.
-
#is_nan ⇒ bool
Returns true if point contain NAN values.
-
#norm ⇒ Float
Returns the norm sqrt(x^2+y^2+z^2) of vector.
-
#normalize ⇒ nil
Normalizes vector to be unit vector.
-
#val(i) ⇒ Float
Returns point component: x for i=0, y for i=1, z for i=2, c for i=3.
-
#|(b) ⇒ MglPoint
The part of a which is parallel to vector b.
Instance Method Details
#&(b) ⇒ MglPoint
The part of a which is perpendicular to vector b.
200 201 |
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 200 def & end |
#*(b) ⇒ MglPoint
Scalar product of vectors.
155 156 |
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 155 def * end |
#+(b) ⇒ MglPoint
Point of summation (summation of vectors).
137 138 |
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 137 def + end |
#-(b) ⇒ MglPoint
Point of difference (difference of vectors).
146 147 |
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 146 def - end |
#/(b) ⇒ MglPoint
Return vector of element-by-element product.
164 165 |
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 164 def / end |
#^(b) ⇒ MglPoint
Cross-product of vectors.
191 192 |
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 191 def ^ end |
#is_nan ⇒ bool
Returns true if point contain NAN values.
103 104 |
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 103 def is_nan end |
#norm ⇒ Float
Returns the norm sqrt(x^2+y^2+z^2) of vector.
111 112 |
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 111 def norm end |
#normalize ⇒ nil
Normalizes vector to be unit vector.
119 120 |
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 119 def normalize end |
#val(i) ⇒ Float
Returns point component: x for i=0, y for i=1, z for i=2, c for i=3.
128 129 |
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 128 def val end |
#|(b) ⇒ MglPoint
The part of a which is parallel to vector b.
209 210 |
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 209 def | end |