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.

trait ApproxDbl
trait Approx[Double]
trait Equals
trait ElemDbl2
trait ElemDblN
trait SpecialT
trait ShowDbl2
trait Show2[Double, Double]
trait TypeStr2[Double, Double]
trait ShowDec
trait Show
trait TypeStr
class Any
class Pt2
class Vec2

Value members

Abstract methods

Rotates this vector through the given angle around the origin.

Rotates this vector through the given angle around the origin.

@inline

Rotates the vector 180 degrees or Pi radians.

Rotates the vector 180 degrees or Pi radians.

@inline

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

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

@inline

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

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

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

The x component of this 2D vector / point.

The x component of this 2D vector / point.

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.

def yScale(factor: Double): Vec2Like

Concrete methods

@inline
def dot(operand: Vec2Like): Double

The dot product of this and the operand vector.

The dot product of this and the operand vector.

def doublesSeq: Seq[Double]
override def name1: String
Definition Classes
override def name2: String
Definition Classes
@inline
final override def show1: Double
Definition Classes
@inline
final override def show2: Double
Definition Classes
def toPair: (Double, Double)

Inherited methods

def approx(that: Any, precision: Double): Boolean
Inherited from:
Approx
def canEqual(that: Any): Boolean
Inherited from:
Equals
final override def dbl1: Double
Definition Classes
Inherited from:
ShowElemDbl2
final override def dbl2: Double
Definition Classes
Inherited from:
ShowElemDbl2
def dblsApprox(that: ElemDbl2, delta: Double): Boolean
Inherited from:
ElemDbl2
def dblsEqual(that: ElemDbl2): Boolean
Inherited from:
ElemDbl2
def el1Show(style: ShowStyle, maxPlaces: Int): String
Inherited from:
Show2
def el2Show(style: ShowStyle, maxPlaces: Int): String
Inherited from:
Show2
Inherited from:
Show2
Inherited from:
Show2
override def opt1: Option[Double]

The optional default value for parameter 1.

The optional default value for parameter 1.

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

The optional default value for parameter 2.

The optional default value for parameter 2.

Definition Classes
Inherited from:
Show2
override def precisionDefault: Double
Definition Classes
Inherited from:
ApproxDbl
override def show(style: ShowStyle): String
Definition Classes
Inherited from:
ShowDec
override def showDec(style: ShowStyle, maxPlaces: Int, minPlaces: Int): String
Definition Classes
Inherited from:
ShowProductDec
def showDec(style: ShowStyle, maxPlaces: Int): String

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

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

Inherited from:
ShowDec
def showElemStrDecs(way: ShowStyle, decimalPlaces: Int): Strings
Inherited from:
Show2
override def showElemStrs(way: ShowStyle): Strings
Definition Classes
Inherited from:
ShowProductDec
def showSemisNameDecs(maxPlaces: Int, minPlaces: Int): String
Inherited from:
ShowProductDec
def showSemisNames: String
Inherited from:
ShowProduct
override def str: String
Definition Classes
Inherited from:
ShowDec
def str0: String

Show with decimal precision of 0 places.

Show with decimal precision of 0 places.

Inherited from:
ShowDec
def str1: String

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.

Inherited from:
ShowDec
def str2: String

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

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

Inherited from:
ShowDec
def str3: String

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

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

Inherited from:
ShowDec
final override def syntaxDepth: Int
Definition Classes
Inherited from:
ShowDbl2
override def toString: String
Definition Classes
Show -> Any
Inherited from:
Show
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.

Inherited from:
TypeStr

Implicits

Inherited implicits

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