Vec3

ostrat.geom.Vec3
See theVec3 companion object
final class Vec3(val x: Double, val y: Double, val z: Double) extends Vec3Like

A 3 dimensional vector. This is similar data to Pt3. The purpose of this separate type is to encode the relative nature of the Vec3 as opposed to the absolute nature of a point. So usually you will want and need to add the vector to an absolute point to return to the absolute realm of points. Thanks to René Descartes for this great idea.

Attributes

Companion:
object
Graph
Supertypes
trait Vec3Like
trait ApproxDbl
trait Approx[Double]
trait Equals
trait Dbl3Elem
trait DblNElem
trait SpecialT
trait ShowDbl3
trait TypeStrN
trait ShowN
trait ShowDec
trait Show
trait TypeStr
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def approx(that: Any, precision: Double): Boolean

Attributes

Definition Classes
override def canEqual(that: Any): Boolean

Attributes

Definition Classes
override def equals(that: Any): Boolean

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

  • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Attributes

that

the object to compare against this object for equality.

Returns:

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Equals -> Any
override def typeStr: String

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

Attributes

Definition Classes

Inherited methods

final override def dbl1: Double

Attributes

Definition Classes
Inherited from:
ShowElemDbl3
final override def dbl2: Double

Attributes

Definition Classes
Inherited from:
ShowElemDbl3
final override def dbl3: Double

Attributes

Definition Classes
Inherited from:
ShowElemDbl3
override def dblForeach(f: Double => Unit): Unit

Performs the side effecting function on each Double in this Product element.

Performs the side effecting function on each Double in this Product element.

Attributes

Definition Classes
Inherited from:
Dbl3Elem
def dblsApprox(that: Dbl3Elem, delta: Double): Boolean

Attributes

Inherited from:
Dbl3Elem

Attributes

Inherited from:
Dbl3Elem
override def elemTypeNames: StrArr

A StrArr Arr of the element type names of this Show Product class.

A StrArr Arr of the element type names of this Show Product class.

Attributes

Definition Classes
Inherited from:
Show3
final override def name1: String

1st parameter name.

1st parameter name.

Attributes

Definition Classes
Inherited from:
Vec3Like
final override def name2: String

2nd parameter name.

2nd parameter name.

Attributes

Definition Classes
Inherited from:
Vec3Like
final override def name3: String

3rd parameter name.

3rd parameter name.

Attributes

Definition Classes
Inherited from:
Vec3Like
override def numParams: Int

Number of parameter constituents of this class.

Number of parameter constituents of this class.

Attributes

Definition Classes
Inherited from:
TypeStr3
override def opt1: Option[A1]

The optional default value for parameter 1.

The optional default value for parameter 1.

Attributes

Definition Classes
Inherited from:
Show3
override def opt2: Option[A2]

The optional default value for parameter 2.

The optional default value for parameter 2.

Attributes

Definition Classes
Inherited from:
Show3
override def opt3: Option[A3]

The optional default value for parameter 3.

The optional default value for parameter 3.

Attributes

Definition Classes
Inherited from:
Show3
override def paramNames: StrArr

Sequence of the names of parameter constituents of this class.

Sequence of the names of parameter constituents of this class.

Attributes

Definition Classes
Inherited from:
Show3
override def precisionDefault: Double

Attributes

Definition Classes
Inherited from:
ApproxDbl
override def show(style: ShowStyle): String

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Attributes

Definition Classes
Inherited from:
ShowN
final override def show1: Double

Element 1 of this 3 element Show product.

Element 1 of this 3 element Show product.

Attributes

Definition Classes
Inherited from:
Vec3Like
final override def show2: Double

Element 2 of this 3 element Show product.

Element 2 of this 3 element Show product.

Attributes

Definition Classes
Inherited from:
Vec3Like
final override def show3: Double

Element 3 of this 3 element Show product.

Element 3 of this 3 element Show product.

Attributes

Definition Classes
Inherited from:
Vec3Like
override def showDec(style: ShowStyle, maxPlaces: Int, minPlaces: Int): String

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Attributes

Definition Classes
Inherited from:
ShowN
def showDec(style: ShowStyle, maxPlaces: Int): String

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Attributes

Inherited from:
Show
override def showElemStrDecs(way: ShowStyle, decimalPlaces: Int): StrArr

A StrArr Arr collection of the show methods return values of the elements of this Show Product class.

A StrArr Arr collection of the show methods return values of the elements of this Show Product class.

Attributes

Definition Classes
Inherited from:
Show3
override def showElemStrs(way: ShowStyle): StrArr

Attributes

Definition Classes
Inherited from:
Show3
def showSemisNameDecs(maxPlaces: Int, minPlaces: Int): String

Attributes

Inherited from:
ShowN

A StrArr Arr collection of the show methods return values of the elements of this Show Product class.

A StrArr Arr collection of the show methods return values of the elements of this Show Product class.

Attributes

Inherited from:
ShowN
override def str: String

The most basic Show method, paralleling the strT method on ShowT type class instances.

The most basic Show method, paralleling the strT method on ShowT type class instances.

Attributes

Definition Classes
Inherited from:
ShowN

Show with decimal precision of 0 places.

Show with decimal precision of 0 places.

Attributes

Inherited from:
ShowDec

Show with decimal precision of 1 place padding with a zero if necessary.

Show with decimal precision of 1 place padding with a zero if necessary.

Attributes

Inherited from:
ShowDec

Show with decimal precision of 2 places padding with zeros if necessary.

Show with decimal precision of 2 places padding with zeros if necessary.

Attributes

Inherited from:
ShowDec

Show with decimal precision of 3 places padding with zeros if necessary.

Show with decimal precision of 3 places padding with zeros if necessary.

Attributes

Inherited from:
ShowDec
final override def syntaxDepth: Int

Attributes

Definition Classes
Inherited from:
ShowDbl3
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Show -> Any
Inherited from:
Show

Concrete fields

val x: Double
val y: Double
val z: Double

Implicits

Inherited implicits

final implicit override def showT1: Persist[Double]

The ShowT type class instance for the 1st element of this 3 element Show product.

The ShowT type class instance for the 1st element of this 3 element Show product.

Attributes

Definition Classes
Inherited from:
ShowDbl3
final implicit override def showT2: Persist[Double]

The ShowT type class instance for the 2nd element of this 3 element Show product.

The ShowT type class instance for the 2nd element of this 3 element Show product.

Attributes

Definition Classes
Inherited from:
ShowDbl3
final implicit override def showT3: Persist[Double]

The ShowT type class instance for the 3rd element of this 3 element Show product.

The ShowT type class instance for the 3rd element of this 3 element Show product.

Attributes

Definition Classes
Inherited from:
ShowDbl3