/** Creates a {@link WritableLine} from two {@code double[]} points. */ public static WritableLine line( final double[] pointOne, final double[] pointTwo, final boolean copy ) { return new DefaultWritableLine( pointOne, pointTwo, copy ); }
/** * Creates a line with endpoints at the given positions. * * @param pointOne * The position of the first point. This position will be copied * and stored as a {@code double[]}. This is the position which * will be returned by {@link #endpointOne()}. * @param pointTwo * The position of the second point. This position will be copied * and stored as a {@code double[]}. This is the position which * will be returned by {@link #endpointTwo()}. */ public DefaultWritableLine( final RealLocalizable pointOne, final RealLocalizable pointTwo ) { this( createArray( pointOne ), createArray( pointTwo ), false ); }
/** Creates a {@link WritableLine} from two {@link RealLocalizable} points. */ public static WritableLine line( final RealLocalizable pointOne, final RealLocalizable pointTwo ) { return new DefaultWritableLine( pointOne, pointTwo ); }