public class ImmutableSegment3D extends Object implements Segment3D, Serializable
| Constructor and Description |
|---|
ImmutableSegment3D(Point3D source,
Point3D target) |
ImmutableSegment3D(Segment3D segment3D) |
| Modifier and Type | Method and Description |
|---|---|
Point3D |
closestPoint(Point3D point3D) |
protected Point3D |
closestPoint(Segment3D _s0,
Point3D _p0) |
ImmutableSegment3D |
copy() |
double |
distanceTo(Point3D point3D) |
List<Point3D> |
getBounds() |
tr.com.terrayazilim.core.unit.DimensionUnit |
getDimensionUnit() |
tr.com.terrayazilim.core.math.Vec3d |
getDirection() |
double |
getLength() |
ShapeUnit |
getShapeUnit() |
Point3D |
getSource() |
Point3D |
getTarget() |
boolean |
isBounded() |
boolean |
isHorizontal() |
boolean |
isVertical() |
Point3D |
point(double scalar) |
double |
project(Point3D point3D) |
Segment3D |
scale(double scaleFactor) |
Segment3D |
translate(double... args) |
public ImmutableSegment3D(Point3D source, Point3D target)
source - target - public ImmutableSegment3D(Segment3D segment3D)
segment3D - protected Point3D closestPoint(Segment3D _s0, Point3D _p0)
_s0 - _p0 - public Point3D closestPoint(Point3D point3D)
closestPoint in interface Segment3Dpublic double project(Point3D point3D)
public double distanceTo(Point3D point3D)
distanceTo in interface Segment3Dpublic tr.com.terrayazilim.core.math.Vec3d getDirection()
getDirection in interface Segment3Dpublic boolean isHorizontal()
isHorizontal in interface Segment3Dpublic boolean isVertical()
isVertical in interface Segment3Dpublic boolean isBounded()
public ImmutableSegment3D copy()
public tr.com.terrayazilim.core.unit.DimensionUnit getDimensionUnit()
getDimensionUnit in interface Segment3DgetDimensionUnit in interface Shapepublic ShapeUnit getShapeUnit()
getShapeUnit in interface Segment3DgetShapeUnit in interface Shapepublic Segment3D translate(double... args)
Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.