/usr/share/games/adanaxisgpl/mushruby/MushTools.rb is in adanaxisgpl-data 1.2.5.dfsg.1-6.
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 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 | #%Header {
##############################################################################
#
# File data-adanaxis/mushruby/MushTools.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 } h4oTKb4c6EmlDYyTMABL4A
# $Id: MushTools.rb,v 1.6 2007/03/26 16:31:34 southa Exp $
# $Log: MushTools.rb,v $
# Revision 1.6 2007/03/26 16:31:34 southa
# L2 work
#
# Revision 1.5 2007/03/13 21:45:03 southa
# Release process
#
# Revision 1.4 2006/08/01 17:21:14 southa
# River demo
#
# Revision 1.3 2006/08/01 13:41:08 southa
# Pre-release updates
#
# Other methods provided by MushMeshRubyTools.cpp
class MushTools
# Class: MushTools
#
# Description:
#
# This object contains tools and utilities for <MushVector> and <MushRotation>
# manipulation. It supplies only singleton methods.
#
# Method: cRotationInPlane
#
# Creates a rotation in the specified plane.
#
# Parameters:
#
# plane - Any of the PLANE_XY constants
# angle - rotation angle in radians
#
# Returns:
#
# New MushRotation object.
#
# Example:
#
# (example)
# rotation1 = MushTools.cRotationInPlane(PLANE_YW, Math::PI / 2)
# (end)
#
# Method: cRotationInXYPlane
#
# Creates a rotation in the XY plane.
#
# Parameters:
#
# angle - rotation angle in radians
#
# Returns:
#
# New MushRotation object.
#
# Example:
#
# (example)
# rotation1 = MushTools.cRotationInXYPlane(Math::PI / 2)
# (end)
#
# Method: cRotationInZWPlane
#
# Creates a rotation in the ZW plane.
#
# Parameters:
#
# angle - rotation angle in radians
#
# Returns:
#
# New MushRotation object.
#
# Example:
#
# (example)
# rotation1 = MushTools.cRotationInZWPlane(Math::PI / 2)
# (end)
#
# Method: cRotationInXZPlane
#
# Creates a rotation in the XZ plane.
#
# Parameters:
#
# angle - rotation angle in radians
#
# Returns:
#
# New MushRotation object.
#
# Example:
#
# (example)
# rotation1 = MushTools.cRotationInXZPlane(Math::PI / 2)
# (end)
#
# Method: cRotationInYWPlane
#
# Creates a rotation in the YW plane.
#
# Parameters:
#
# angle - rotation angle in radians
#
# Returns:
#
# New MushRotation object.
#
# Example:
#
# (example)
# rotation1 = MushTools.cRotationInYWPlane(Math::PI / 2)
# (end)
#
# Method: cRotationInXWPlane
#
# Creates a rotation in the XW plane.
#
# Parameters:
#
# angle - rotation angle in radians
#
# Returns:
#
# New MushRotation object.
#
# Example:
#
# (example)
# rotation1 = MushTools.cRotationInXWPlane(Math::PI / 2)
# (end)
#
# Method: cRotationInYZPlane
#
# Creates a rotation in the YZ plane.
#
# Parameters:
#
# angle - rotation angle in radians
#
# Returns:
#
# New MushRotation object.
#
# Example:
#
# (example)
# rotation1 = MushTools.cRotationInYZPlane(Math::PI / 2)
# (end)
#
# Method: cRandomOrientation
#
# Creates a <MushRotation> object to be used as a random orientation.
#
# Parameters:
#
# None.
#
# Returns:
#
# New MushRotation object.
#
# Example:
#
# (example)
# rotation1 = MushTools.cRandomOrientation
# (end)
#
# Method: cRandomUnitVector
#
# Returns a random unit vector.
#
# Parameters:
#
# None.
#
# Returns:
#
# New <MushVector> object.
#
# Example:
#
# (example)
# vector1 = MushTools.cRandomUnitVector()
# (end)
#
# Method: cRandomAngularVelocity
#
# Returns a random angular velocity. The magnitude is determined by the parameter.
#
# Parameters:
#
# magnitude - approximate radian amplited of angular velocity
#
# Returns:
#
# New <MushRotation> object.
#
# Example:
#
# (example)
# rotation1 = MushTools.cRandomAngularVelocity(0.01)
# (end)
#
# Method: cRandomSeedSet
#
# Sets the random seed for these value.
#
# Parameters:
#
# seed - interger seed value
#
# Returns:
#
# Bone.
#
# Example:
#
# (example)
# MushTools.cRandomSeedSet(12)
# (end)
#
# Group: Links
#- Wrapper file:doxygen/class_mush_mesh_ruby_tools.html
#- Implemetation file:doxygen/class_mush_mesh_tools.html
PLANE_XY = 0
PLANE_ZW = 1
PLANE_XZ = 2
PLANE_YW = 3
PLANE_XW = 4
PLANE_YZ = 5
end
|