py4sci

Table Of Contents

Previous topic

eegtopo Package

Next topic

MyTest: Testing Stuff...

This Page

geometry Package

euclidean Module

Euclidean geometry support module

class eegtopo.geometry.euclidean.Vector(x=0.0, y=0.0, z=0.0)

Bases: builtins.object

3D-Vector class

copy()

return a copy of this vector

cross(other)

Cross product with another vector

dot(other)

Dot product with another vector

classmethod fromiterable(itr)

Initialize from iterable

classmethod fromvector(v)

Copy another vector

norm()

Length of the vector

norm2()

Squared norm of the vector

normalize()

Normalize vector to length 1

normalized()

Return normalized vector, but don’t change original

rotate(l, u)

rotate l radians around axis u

rotated(l, u)

rotate l radians around axis, but don’t change original

spherical Module

Spherical geometry support module

class eegtopo.geometry.spherical.Circle(a, b, c=None)

Bases: builtins.object

Arbitrary circle on the spherical surface

angle(p)
distance(p)
get_point(l)
get_radius()
class eegtopo.geometry.spherical.Construct

Bases: builtins.object

Collection of methods for geometric construction on a sphere

static circle_intersect_circle(a, b)
static line_intersect_circle(line, circle)
static line_intersect_line(k, l)
static midpoint(a, b)

Point exactly between a and b

class eegtopo.geometry.spherical.Line(a, b)

Bases: builtins.object

Line on the spherical surface (also known as grand circle)

distance(p)
get_point(l)
class eegtopo.geometry.spherical.Point(x=None, y=None, z=None)

Bases: builtins.object

Point on the surface of a sphere

distance(other)

Distance to another point on the sphere

distances(points)

Distance to other points on the sphere

classmethod fromvector(v)

Initialize from euclidean vector

vector

position in 3d space