D - the dimension of the linepublic final class Line<D extends TwoMin> extends GeometrixObject
LineHelper| Modifier and Type | Method and Description |
|---|---|
static <D extends TwoMin> |
create(Vec<D> initialPoint,
Vec<D> direc)
Constructs a new line with a given initial point and direction vector.
|
boolean |
equals(java.lang.Object o) |
D |
getDimension() |
Vec<D> |
getDirection() |
Vec<D> |
getInitialPoint() |
int |
hashCode() |
boolean |
resembles(java.lang.Object o) |
java.lang.String |
toString() |
public static <D extends TwoMin> Line<D> create(Vec<D> initialPoint, Vec<D> direc)
initialPoint - the initial point of the linedirec - the direction vector of the linejava.lang.NullPointerException - if at least one of the arguments is nulljava.lang.IllegalArgumentException - if direc is a zero vectorjava.lang.IllegalArgumentException - if initialPoint lies outside object spacepublic boolean resembles(java.lang.Object o)
resembles in class GeometrixObjectpublic boolean equals(java.lang.Object o)
equals in class GeometrixObjectpublic int hashCode()
hashCode in class GeometrixObjectpublic java.lang.String toString()
toString in class GeometrixObjectpublic D getDimension()