Class/Object

edu.berkeley.ce.sparkrocks

Joint

Related Docs: object Joint | package sparkrocks

Permalink

case class Joint(normalVec: Array[Double], localOrigin: Array[Double], center: Array[Double], phi: Double, cohesion: Double, shape: Vector[(Array[Double], Double)], dipAngleParam: Option[Double] = None, dipDirectionParam: Option[Double] = None, boundingSphereParam: Option[(Array[Double], Double)] = null) extends Serializable with Product

A simple data structure to represent a joint.

normalVec

The normal vector to the joint. The individual vector components can be accessed as 'a', 'b', and 'c'. Assumed to be a unit vector.

localOrigin

The local origin from which the distance is referenced. The individual components are accessed as 'localX', 'localY', and 'localZ'.

center

Cartesian coordinates for the center of the joint. The individual components can be accessed as 'centerX', 'centerY', and 'centerZ'.

phi

The joint's friction angle (phi).

cohesion

The cohesion along the joint

shape

A list of lines specifying the shape of the joint. Each item is a 3-tuple. The first two items specify the line, while the last gives the distance of the line from the joint's center in the local coordinate system.

dipAngleParam

An optional parameter that can be used to specify the dip angle for the joint. This avoids recalculation of a known dip angle.

dipDirectionParam

An optional parameter that can be used to specify the dip direction for the joint. This avoids recalculation of a known dip direction.

boundingSphereParam

An optional parameter that can be used to specify the bounding sphere for the joint, if it is known. This prevents an expensive recalculation of the bounding sphere.

Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Joint
  2. Product
  3. Equals
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Joint(normalVec: Array[Double], localOrigin: Array[Double], center: Array[Double], phi: Double, cohesion: Double, shape: Vector[(Array[Double], Double)], dipAngleParam: Option[Double] = None, dipDirectionParam: Option[Double] = None, boundingSphereParam: Option[(Array[Double], Double)] = null)

    Permalink

    Create a new joint.

    Create a new joint.

    normalVec

    The normal vector to the joint. The individual vector components can be accessed as 'a', 'b', and 'c'. Assumed to be a unit vector.

    localOrigin

    The local origin from which the distance is referenced. The individual components are accessed as 'localX', 'localY', and 'localZ'.

    center

    Cartesian coordinates for the center of the joint. The individual components can be accessed as 'centerX', 'centerY', and 'centerZ'.

    phi

    The joint's friction angle (phi).

    cohesion

    The cohesion along the joint

    shape

    A list of lines specifying the shape of the joint. Each item is a 3-tuple. The first two items specify the line, while the last gives the distance of the line from the joint's center in the local coordinate system.

    dipAngleParam

    An optional parameter that can be used to specify the dip angle for the joint. This avoids recalculation of a known dip angle.

    dipDirectionParam

    An optional parameter that can be used to specify the dip direction for the joint. This avoids recalculation of a known dip direction.

    boundingSphereParam

    An optional parameter that can be used to specify the bounding sphere for the joint, if it is known. This prevents an expensive recalculation of the bounding sphere.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val a: Double

    Permalink
  5. def approximateEquals(inputJoint: Joint, tolerance: Double = NumericUtils.EPSILON): Boolean

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val b: Double

    Permalink
  8. val boundingSphere: Option[(Array[Double], Double)]

    Permalink
  9. val boundingSphereParam: Option[(Array[Double], Double)]

    Permalink

    An optional parameter that can be used to specify the bounding sphere for the joint, if it is known.

    An optional parameter that can be used to specify the bounding sphere for the joint, if it is known. This prevents an expensive recalculation of the bounding sphere.

  10. val c: Double

    Permalink
  11. val center: Array[Double]

    Permalink

    Cartesian coordinates for the center of the joint.

    Cartesian coordinates for the center of the joint. The individual components can be accessed as 'centerX', 'centerY', and 'centerZ'.

  12. val centerX: Double

    Permalink
  13. val centerY: Double

    Permalink
  14. val centerZ: Double

    Permalink
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. val cohesion: Double

    Permalink

    The cohesion along the joint

  17. val d: Double

    Permalink
  18. val dipAngle: Double

    Permalink
  19. val dipAngleParam: Option[Double]

    Permalink

    An optional parameter that can be used to specify the dip angle for the joint.

    An optional parameter that can be used to specify the dip angle for the joint. This avoids recalculation of a known dip angle.

  20. val dipDirection: Double

    Permalink
  21. val dipDirectionParam: Option[Double]

    Permalink

    An optional parameter that can be used to specify the dip direction for the joint.

    An optional parameter that can be used to specify the dip direction for the joint. This avoids recalculation of a known dip direction.

  22. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. def equals(obj: Any): Boolean

    Permalink
    Definition Classes
    Joint → Equals → AnyRef → Any
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def globalCoordinates: Seq[(Array[Double], Double)]

    Permalink

    Converts lines defining shape of joint from local to global coordinates

    Converts lines defining shape of joint from local to global coordinates

    returns

    A seq of pairs, each representing a plane that specifies a boundary of the joint in the global coordinate space. The first item of each pair is a normal vector for the plane, and the second item is the distance of the plane from the origin.

  27. def hashCode(): Int

    Permalink
    Definition Classes
    Joint → AnyRef → Any
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. val localOrigin: Array[Double]

    Permalink

    The local origin from which the distance is referenced.

    The local origin from which the distance is referenced. The individual components are accessed as 'localX', 'localY', and 'localZ'.

  30. val localX: Double

    Permalink
  31. val localY: Double

    Permalink
  32. val localZ: Double

    Permalink
  33. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  34. val normalVec: Array[Double]

    Permalink

    The normal vector to the joint.

    The normal vector to the joint. The individual vector components can be accessed as 'a', 'b', and 'c'. Assumed to be a unit vector.

  35. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. val phi: Double

    Permalink

    The joint's friction angle (phi).

  38. val shape: Vector[(Array[Double], Double)]

    Permalink

    A list of lines specifying the shape of the joint.

    A list of lines specifying the shape of the joint. Each item is a 3-tuple. The first two items specify the line, while the last gives the distance of the line from the joint's center in the local coordinate system.

  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def updateJoint(blockOrigin: Array[Double]): Joint

    Permalink

    Calculates the distances of the joint relative to a new origin

    Calculates the distances of the joint relative to a new origin

    returns

    Distance relative to block origin (new local origin)

  41. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped