Class: MathGL::MglPoint

Inherits:
Object
  • Object
show all
Defined in:
lib/mathgl/doc/libdoc_other_en.rb,
ext/mathgl/mathgl.cxx

Overview

Proxy of C++ MathGL::MglPoint class

Instance Method Summary collapse

Instance Method Details

#&(b) ⇒ MglPoint

The part of a which is perpendicular to vector b.

Parameters:

Returns:


200
201
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 200

def &
end

#*(b) ⇒ MglPoint

Scalar product of vectors.

Parameters:

Returns:


155
156
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 155

def *
end

#+(b) ⇒ MglPoint

Point of summation (summation of vectors).

Parameters:

Returns:


137
138
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 137

def +
end

#-(b) ⇒ MglPoint

Point of difference (difference of vectors).

Parameters:

Returns:


146
147
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 146

def -
end

#/(b) ⇒ MglPoint

Return vector of element-by-element product.

Parameters:

Returns:


164
165
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 164

def /
end

#^(b) ⇒ MglPoint

Cross-product of vectors.

Parameters:

Returns:


191
192
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 191

def ^
end

#is_nanbool

Returns true if point contain NAN values.

Returns:

  • (bool)

103
104
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 103

def is_nan
end

#normFloat

Returns the norm sqrt(x^2+y^2+z^2) of vector.

Returns:

  • (Float)

111
112
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 111

def norm
end

#normalizenil

Normalizes vector to be unit vector.

Returns:

  • (nil)

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.

Parameters:

  • i (Integer)

Returns:

  • (Float)

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.

Parameters:

Returns:


209
210
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 209

def |
end