Vec2Like

ostrat.geom.Vec2Like
trait Vec2Like extends ShowElemDbl2 with ApproxDbl

A common trait for Vec2 and Pt2 it would be good if the methods on this trait could be reduced.

Attributes

Graph
Supertypes
trait ApproxDbl
trait Approx[Double]
trait Equals
trait Dbl2Elem
trait DblNElem
trait SpecialT
trait ShowDbl2
trait TypeStrN
trait ShowN
trait ShowDec
trait Show
trait TypeStr
class Any
Known subtypes
class Pt2
class Vec2

Members list

Concise view

Value members

Abstract methods

Rotates this vector through the given angle around the origin.

Rotates this vector through the given angle around the origin.

Attributes

Rotates the vector 180 degrees or Pi radians.

Rotates the vector 180 degrees or Pi radians.

Attributes

rotates the vector 90 degrees or Pi/2 radians, clockwise.

rotates the vector 90 degrees or Pi/2 radians, clockwise.

Attributes

rotates the vector 90 degrees or Pi/2 radians, anticlockwise.

rotates the vector 90 degrees or Pi/2 radians, anticlockwise.

Attributes

def scale(factor: Double): Vec2Like
def x: Double

The x component of this 2D vector / point.

The x component of this 2D vector / point.

Attributes

def xScale(factor: Double): Vec2Like
def xyScale(xOperand: Double, yOperand: Double): Vec2Like
def y: Double

The y component of this 2D vector / point.

The y component of this 2D vector / point.

Attributes

def yScale(factor: Double): Vec2Like

Concrete methods

def dot(operand: Vec2Like): Double

The dot product of this and the operand vector.

The dot product of this and the operand vector.

Attributes

override def name1: String

1st parameter name.

1st parameter name.

Attributes

Definition Classes
override def name2: String

2nd parameter name.

2nd parameter name.

Attributes

Definition Classes
final override def show1: Double

Element 1 of this Show 2 element product.

Element 1 of this Show 2 element product.

Attributes

Definition Classes
final override def show2: Double

Element 2 of this Show 2 element product.

Element 2 of this Show 2 element product.

Attributes

Definition Classes

Inherited methods

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

Attributes

Inherited from:
Approx
def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
final override def dbl1: Double

Attributes

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

Attributes

Definition Classes
Inherited from:
ShowElemDbl2
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:
Dbl2Elem
def dblsApprox(that: Dbl2Elem, delta: Double): Boolean

Attributes

Inherited from:
Dbl2Elem

Attributes

Inherited from:
Dbl2Elem
def el1Show(style: ShowStyle, maxPlaces: Int): String

Attributes

Inherited from:
Show2
def el2Show(style: ShowStyle, maxPlaces: Int): String

Attributes

Inherited from:
Show2

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

Inherited from:
Show2
override def numParams: Int

Number of parameter constituents of this class.

Number of parameter constituents of this class.

Attributes

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

The optional default value for parameter 1.

The optional default value for parameter 1.

Attributes

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

The optional default value for parameter 2.

The optional default value for parameter 2.

Attributes

Definition Classes
Inherited from:
Show2
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:
Show2
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
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
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

Inherited from:
Show2

Attributes

Inherited from:
ShowN
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:
Show2

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:
ShowDbl2
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

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

Inherited from:
TypeStr

Implicits

Inherited implicits

final implicit override def showT1: ShowT[Double]

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

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

Attributes

Definition Classes
Inherited from:
ShowDbl2
final implicit override def showT2: ShowT[Double]

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

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

Attributes

Definition Classes
Inherited from:
ShowDbl2