public class Vec
extends java.lang.Object
Constructor and Description |
---|
Vec(double u,
double v)
Instantiates a new vec.
|
Modifier and Type | Method and Description |
---|---|
double |
length()
Length.
|
Vec |
normal()
Normal.
|
java.lang.String |
toString()
To string.
|
public Vec(double u, double v)
u
- the uv
- the vpublic double length()
public Vec normal()
public java.lang.String toString()
toString
in class java.lang.Object