Module: geometry_representation

class GeomRepresentation(foo)[source]

Bases: object

Attributes

allowed_representation_types
name
representation_type
shape
allowed_representation_types
name
representation_type
shape
class Representation2D(representation_type, units=None, twodim_matrix_coord=None, first_coord=None, second_coord=None, allowed_representation_types=['cartesian', 'polar'], copy=True, name=None, metric='euclidean', rotation_center_x=0, rotation_center_y=0, coord_dtype=<type 'numpy.float64'>)[source]

Bases: asterism.core.coordinates.geometry_representation.GeomRepresentation

Attributes

allowed_representation_types
coords
name
r
representation_type
rotation_center
shape
theta
theta_units
x
y

Methods

dist_eval([index, x_c, y_c, metric, selected])
geom_transformation(transformation[, inplace])
to_cartesian([x_c, y_c, name])
to_polar([x_c, y_c, name])
coords
dist_eval(index=None, x_c=None, y_c=None, metric=None, selected=None)[source]
geom_transformation(transformation, inplace=False)[source]
r
rotation_center
theta
theta_units
to_cartesian(x_c=None, y_c=None, name='cartesian')[source]
to_polar(x_c=None, y_c=None, name='polar')[source]
x
y