/usr/share/games/adanaxisgpl/mushruby/MushPost.rb is in adanaxisgpl-data 1.2.5.dfsg.1-5ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | #%Header {
##############################################################################
#
# File data-adanaxis/mushruby/MushPost.rb
#
# Author Andy Southgate 2006-2007
#
# This file contains original work by Andy Southgate. The author and his
# employer (Mushware Limited) irrevocably waive all of their copyright rights
# vested in this particular version of this file to the furthest extent
# permitted. The author and Mushware Limited also irrevocably waive any and
# all of their intellectual property rights arising from said file and its
# creation that would otherwise restrict the rights of any party to use and/or
# distribute the use of, the techniques and methods used herein. A written
# waiver can be obtained via http://www.mushware.com/.
#
# This software carries NO WARRANTY of any kind.
#
##############################################################################
#%Header } fHw9k9xoPu7sjgSPAR67sA
# $Id: MushPost.rb,v 1.5 2007/03/13 21:45:03 southa Exp $
# $Log: MushPost.rb,v $
# Revision 1.5 2007/03/13 21:45:03 southa
# Release process
#
# Revision 1.4 2006/08/01 17:21:13 southa
# River demo
#
# Revision 1.3 2006/08/01 13:41:08 southa
# Pre-release updates
#
class MushPost
# Class: MushPost
#
# Description:
#
# This object contains position and velocity <MushVectors>, and angular position
# and velocity <MushRotations>.
#
# Method: new
#
# Creates a new MushPost object.
#
# Parameters:
#
# position - Position <MushVector>
# velocity - Velocity <MushVector>
# angular_position - Angular position <MushRotation>
# angular_velocity - Angular velocity <MushRotation>
#
# Parameters may be supplied as a hash, or as four parameters.
#
# Returns:
#
# New MushPost object
#
# Default:
#
# The default constructor creates an object with zero-values positions and velocities.
#
# Example:
#
# (example)
# post1 = MushPost.new
# post2 = MushPost.new(
# :position => MushVector.new(1,2,3,4),
# :angular_position => MushTools.cRotationInXYPlane(Math::PI/2),
# :velocity => MushVector.new(0,0,0,-0.3),
# :angular_velocity => MushTools.cRotationInZWPlane(Math::PI/20)
# )
# post3 = MushPost.new(
# MushVector.new(1,2,3,4),
# MushVector.new(0,0,0,-0.3),
# MushTools.cRotationInZWPlane(Math::PI/2),
# MushTools.cRotationInZWPlane(Math::PI/20)
# )
# (end)
#
# Method: position
#
# Returns:
#
# Position <MushVector>
#
# Method: velocity
#
# Returns:
#
# Velocity <MushVector>
#
# Method: angular_position
#
# Returns:
#
# Angular position <MushRotation>
#
# Method: angular_velocity
#
# Returns:
#
# Angular velocity <MushRotation>
#
# Method: position=
#
# Sets the position vector.
#
# Parameter:
#
# Position <MushVector>
#
# Method: velocity=
#
# Sets the velocity vector.
#
# Parameter:
#
# Velocity <MushVector>
#
# Method: angular_position=
#
# Sets the angular position element.
#
# Parameter:
#
# Angular position <MushRotation>
#
# Method: angular_velocity=
#
# Sets the angular velocity element.
#
# Parameter:
#
# Angular velocity <MushRotation>
#
# Group: Links
#- Wrapper file:doxygen/class_mush_mesh_ruby_post.html
#- Implemetation file:doxygen/class_mush_mesh_posticity.html
end
|