Public Member Functions | Public Attributes | List of all members
wirecell.util.geo.shapes.Ray Class Reference
Inheritance diagram for wirecell.util.geo.shapes.Ray:

Public Member Functions

def __init__ (self, tail, head)
 
def __str__ (self)
 
def __repr__ (self)
 
def vector (self)
 
def unit (self)
 

Public Attributes

 tail
 
 head
 

Detailed Description

A pair of N-D vectors, each represented by an N-D Point

Definition at line 102 of file shapes.py.

Constructor & Destructor Documentation

def wirecell.util.geo.shapes.Ray.__init__ (   self,
  tail,
  head 
)

Definition at line 106 of file shapes.py.

106  def __init__(self, tail, head):
107  self.tail = tail
108  self.head = head
109 
def __init__(self, tail, head)
Definition: shapes.py:106

Member Function Documentation

def wirecell.util.geo.shapes.Ray.__repr__ (   self)

Definition at line 113 of file shapes.py.

113  def __repr__(self):
114  return str(self)
115 
static QCString str
def wirecell.util.geo.shapes.Ray.__str__ (   self)

Definition at line 110 of file shapes.py.

110  def __str__(self):
111  return "%s -> %s" % (self.tail, self.head)
112 
def wirecell.util.geo.shapes.Ray.unit (   self)

Definition at line 121 of file shapes.py.

121  def unit(self):
122  return self.vector.unit
123 
124 
def wirecell.util.geo.shapes.Ray.vector (   self)

Definition at line 117 of file shapes.py.

117  def vector(self):
118  return self.head - self.tail
119 

Member Data Documentation

wirecell.util.geo.shapes.Ray.head

Definition at line 108 of file shapes.py.

wirecell.util.geo.shapes.Ray.tail

Definition at line 107 of file shapes.py.


The documentation for this class was generated from the following file: