Vec3

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.

Companion
object
trait Vec3Like
trait ApproxDbl
trait Approx[Double]
trait Equals
trait Show3Dbls
trait Dbl3Elem
trait DblNElem
trait SpecialT
trait Show3[Double, Double, Double]
trait Show
class Object
trait Matchable
class Any

Value members

Concrete methods

override def approx(that: Any, precision: Double): Boolean
Definition Classes
override def canEqual(that: Any): Boolean
Definition Classes
Equals
override def equals(that: Any): Boolean
Definition Classes
Equals -> Any
override def typeStr: String
Definition Classes

Inherited methods

override def dbl1: Double
Definition Classes
Inherited from
Show3Dbls
override def dbl2: Double
Definition Classes
Inherited from
Show3Dbls
override def dbl3: Double
Definition Classes
Inherited from
Show3Dbls
def dblsApprox(that: Dbl3Elem, delta: Double): Boolean
Inherited from
Dbl3Elem
def dblsEqual(that: Dbl3Elem): Boolean
Inherited from
Dbl3Elem
Inherited from
Show3
Inherited from
Show3
override def name1: String

the name of the 1st element of this 3 element Show product.

the name of the 1st element of this 3 element Show product.

Definition Classes
Inherited from
Vec3Like
override def name2: String

the name of the 2nd element of this 3 element Show product.

the name of the 2nd element of this 3 element Show product.

Definition Classes
Inherited from
Vec3Like
override def name3: String

the name of the 3rd element of this 3 element Show product.

the name of the 3rd element of this 3 element Show product.

Definition Classes
Inherited from
Vec3Like
override def precisionDefault: Double
Definition Classes
Inherited from
ApproxDbl
override def show(way: Way, maxPlaces: Int, minPlaces: Int): String
Definition Classes
Inherited from
ShowProduct
override def show1: Double

Element 1 of this 3 element Show product.

Element 1 of this 3 element Show product.

Definition Classes
Inherited from
Vec3Like
override def show2: Double

Element 2 of this 3 element Show product.

Element 2 of this 3 element Show product.

Definition Classes
Inherited from
Vec3Like
override def show3: Double

Element 3 of this 3 element Show product.

Element 3 of this 3 element Show product.

Definition Classes
Inherited from
Vec3Like
def shows(way: Way, decimalPlaces: Int): Strings
Inherited from
Show3
override def str: String
Definition Classes
Inherited from
ShowProduct
final override def syntaxdepth: Int
Definition Classes
Inherited from
Show3Dbls
final override def toString: String
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: ShowT[Double]
Definition Classes
Inherited from
Show3Dbls
final implicit override def showT2: ShowT[Double]
Definition Classes
Inherited from
Show3Dbls
final implicit override def showT3: ShowT[Double]
Definition Classes
Inherited from
Show3Dbls