Class: MathGL::MglPoint

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

Overview

MglPoint class

Instance Method Summary (collapse)

Instance Method Details

- (MglPoint) &(b)

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

- (MglPoint) *(b)

Scalar product of vectors.

Parameters:

Returns:



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

def *
end

- (MglPoint) +(b)

Point of summation (summation of vectors).

Parameters:

Returns:



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

def +
end

- (MglPoint) -(b)

Point of difference (difference of vectors).

Parameters:

Returns:



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

def -
end

- (MglPoint) /(b)

Return vector of element-by-element product.

Parameters:

Returns:



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

def /
end

- (MglPoint) ^(b)

Cross-product of vectors.

Parameters:

Returns:



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

def ^
end

- (bool) is_nan

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

- (Float) norm

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

- (nil) normalize

Normalizes vector to be unit vector.

Returns:

  • (nil)


119
120
# File '../lib/mathgl/doc/libdoc_other_en.rb', line 119

def normalize
end

- (Float) val(i)

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

- (MglPoint) |(b)

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