pub fn write_point(&mut self, point: &Point) -> Result<()> {
        try!(self.writer.write_f64::<LittleEndian>(point.time));
        try!(self.writer.write_f32::<LittleEndian>(point.range));
        try!(self.writer.write_f32::<LittleEndian>(point.theta));
        try!(self.writer.write_f32::<LittleEndian>(point.x));
        try!(self.writer.write_f32::<LittleEndian>(point.y));
        try!(self.writer.write_f32::<LittleEndian>(point.z));
        try!(self.writer.write_u16::<LittleEndian>(point.amplitude));
        try!(self.writer.write_u16::<LittleEndian>(point.width));
        try!(self.writer.write_u8(point.target_type.as_u8()));
        try!(self.writer.write_u8(point.target));
        try!(self.writer.write_u8(point.num_target));
        try!(self.writer.write_u16::<LittleEndian>(point.rg_index));
        try!(self.writer.write_u8(point.channel_desc_byte()));
        Ok(())
    }
/// Writes a point to this SDC file.
///
/// # Examples
///
/// ```
/// use sdc::writer::Writer;
/// use sdc::point::Point;
/// let ref point = Point::new();
/// let mut file = Writer::from_path("/dev/null").unwrap();
/// file.write_point(point).unwrap();
Writes a point to this SDC file.
Writes a point to this SDC file .
pub fn write_point(&mut self, point: &Point) -> Result<()> {
        try!(self.writer.write_f64::<LittleEndian>(point.time));
        try!(self.writer.write_f32::<LittleEndian>(point.range));
        try!(self.writer.write_f32::<LittleEndian>(point.theta));
        try!(self.writer.write_f32::<LittleEndian>(point.x));
        try!(self.writer.write_f32::<LittleEndian>(point.y));
        try!(self.writer.write_f32::<LittleEndian>(point.z));
        try!(self.writer.write_u16::<LittleEndian>(point.amplitude));
        try!(self.writer.write_u16::<LittleEndian>(point.width));
        try!(self.writer.write_u8(point.target_type.as_u8()));
        try!(self.writer.write_u8(point.target));
        try!(self.writer.write_u8(point.num_target));
        try!(self.writer.write_u16::<LittleEndian>(point.rg_index));
        try!(self.writer.write_u8(point.channel_desc_byte()));
        Ok(())
    }
pub fn write_point ( & mut self , point : & Point ) -> Result < ( ) > { try ! ( self writer write_f64 LittleEndian ( point time ) ) ; try ! ( self writer write_f32 LittleEndian ( point range ) ) ; try ! ( self writer write_f32 LittleEndian ( point theta ) ) ; try ! ( self writer write_f32 LittleEndian ( point x ) ) ; try ! ( self writer write_f32 LittleEndian ( point y ) ) ; try ! ( self writer write_f32 LittleEndian ( point z ) ) ; try ! ( self writer write_u16 LittleEndian ( point amplitude ) ) ; try ! ( self writer write_u16 LittleEndian ( point width ) ) ; try ! ( self writer write_u8 ( point target_type as_u8 ( ) ) ) ; try ! ( self writer write_u8 ( point target ) ) ; try ! ( self writer write_u8 ( point num_target ) ) ; try ! ( self writer write_u16 LittleEndian ( point rg_index ) ) ; try ! ( self writer write_u8 ( point channel_desc_byte ( ) ) ) ; Ok ( ( ) ) }
Writes a point to this SDC file.
Writes a point to this SDC file .
&mut self
point
&Point
examples
```
use sdc::writer::Writer;
use sdc::point::Point;
let ref point = Point::new();
let mut file = Writer::from_path("/dev/null").unwrap();
file.write_point(point).unwrap().
` ` ` use sdc :: writer :: Writer ; use sdc :: point :: Point ; let ref point = Point :: new () ; let mut file = Writer :: from_path ( " / dev / null " ) . unwrap () ; file . write_point ( point ) . unwrap () .