/** Replies the property that represents the length of the vector.
*
* @return the length property
*/
public DoubleProperty lengthProperty() {
if (this.lengthProperty == null) {
this.lengthProperty = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.LENGTH);
this.lengthProperty.bind(Bindings.createDoubleBinding(() ->
Math.sqrt(lengthSquaredProperty().doubleValue()), lengthSquaredProperty()));
}
return this.lengthProperty;
}
java类javafx.beans.property.ReadOnlyDoubleWrapper的实例源码
Vector2ifx.java 文件源码
项目:afc
阅读 31
收藏 0
点赞 0
评论 0
Vector2ifx.java 文件源码
项目:afc
阅读 32
收藏 0
点赞 0
评论 0
/** Replies the property that represents the length of the vector.
*
* @return the length property
*/
public DoubleProperty lengthSquaredProperty() {
if (this.lengthSquareProperty == null) {
this.lengthSquareProperty = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.LENGTH_SQUARED);
this.lengthSquareProperty.bind(Bindings.createDoubleBinding(() -> {
return Vector2ifx.this.x.doubleValue() * Vector2ifx.this.x.doubleValue()
+ Vector2ifx.this.y.doubleValue() * Vector2ifx.this.y.doubleValue();
}, this.x, this.y));
}
return this.lengthSquareProperty;
}
UnitVectorProperty.java 文件源码
项目:afc
阅读 40
收藏 0
点赞 0
评论 0
private void init() {
final Vector2dfx v = getGeomFactory().newVector();
this.x = new ReadOnlyDoubleWrapper(v, MathFXAttributeNames.X);
this.y = new ReadOnlyDoubleWrapper(v, MathFXAttributeNames.X);
v.set(this.x, this.y);
super.set(v);
}
Rectangle2dfx.java 文件源码
项目:afc
阅读 30
收藏 0
点赞 0
评论 0
/** Replies the property that is the width of the box.
*
* @return the width property.
*/
@Pure
public DoubleProperty widthProperty() {
if (this.width == null) {
this.width = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.WIDTH);
this.width.bind(Bindings.subtract(maxXProperty(), minXProperty()));
}
return this.width;
}
Rectangle2dfx.java 文件源码
项目:afc
阅读 39
收藏 0
点赞 0
评论 0
/** Replies the property that is the height of the box.
*
* @return the height property.
*/
@Pure
public DoubleProperty heightProperty() {
if (this.height == null) {
this.height = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.HEIGHT);
this.height.bind(Bindings.subtract(maxYProperty(), minYProperty()));
}
return this.height;
}
Vector2dfx.java 文件源码
项目:afc
阅读 37
收藏 0
点赞 0
评论 0
/** Replies the property that represents the length of the vector.
*
* @return the length property
*/
public ReadOnlyDoubleProperty lengthProperty() {
if (this.lengthProperty == null) {
this.lengthProperty = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.LENGTH);
this.lengthProperty.bind(Bindings.createDoubleBinding(() ->
Math.sqrt(lengthSquaredProperty().doubleValue()), lengthSquaredProperty()));
}
return this.lengthProperty.getReadOnlyProperty();
}
Vector2dfx.java 文件源码
项目:afc
阅读 40
收藏 0
点赞 0
评论 0
/** Replies the property that represents the length of the vector.
*
* @return the length property
*/
public ReadOnlyDoubleProperty lengthSquaredProperty() {
if (this.lengthSquareProperty == null) {
this.lengthSquareProperty = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.LENGTH_SQUARED);
this.lengthSquareProperty.bind(Bindings.createDoubleBinding(() ->
Vector2dfx.this.x.doubleValue() * Vector2dfx.this.x.doubleValue()
+ Vector2dfx.this.y.doubleValue() * Vector2dfx.this.y.doubleValue(), this.x, this.y));
}
return this.lengthSquareProperty.getReadOnlyProperty();
}
Path2dfx.java 文件源码
项目:afc
阅读 41
收藏 0
点赞 0
评论 0
/** Replies the path length property.
*
* @return the length property.
*/
public DoubleProperty lengthProperty() {
if (this.length == null) {
this.length = new ReadOnlyDoubleWrapper();
this.length.bind(Bindings.createDoubleBinding(() -> Path2afp.calculatesPathLength(getPathIterator()),
innerTypesProperty(), innerCoordinatesProperty()));
}
return this.length;
}
Vector3ifx.java 文件源码
项目:afc
阅读 34
收藏 0
点赞 0
评论 0
/** Replies the property that represents the length of the vector.
*
* @return the length property
*/
public DoubleProperty lengthProperty() {
if (this.lengthProperty == null) {
this.lengthProperty = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.LENGTH);
this.lengthProperty.bind(Bindings.createDoubleBinding(() ->
Math.sqrt(lengthSquaredProperty().doubleValue()), lengthSquaredProperty()));
}
return this.lengthProperty;
}
Vector3ifx.java 文件源码
项目:afc
阅读 38
收藏 0
点赞 0
评论 0
/** Replies the property that represents the length of the vector.
*
* @return the length property
*/
public DoubleProperty lengthSquaredProperty() {
if (this.lengthSquareProperty == null) {
this.lengthSquareProperty = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.LENGTH_SQUARED);
this.lengthSquareProperty.bind(Bindings.createDoubleBinding(() ->
Vector3ifx.this.x.doubleValue() * Vector3ifx.this.x.doubleValue()
+ Vector3ifx.this.y.doubleValue() * Vector3ifx.this.y.doubleValue()
+ Vector3ifx.this.z.doubleValue() * Vector3ifx.this.z.doubleValue(), this.x, this.y, this.z));
}
return this.lengthSquareProperty;
}
Vector3dfx.java 文件源码
项目:afc
阅读 42
收藏 0
点赞 0
评论 0
/** Replies the property that represents the length of the vector.
*
* @return the length property
*/
public ReadOnlyDoubleProperty lengthProperty() {
if (this.lengthProperty == null) {
this.lengthProperty = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.LENGTH);
this.lengthProperty.bind(Bindings.createDoubleBinding(() ->
Math.sqrt(lengthSquaredProperty().doubleValue()), lengthSquaredProperty()));
}
return this.lengthProperty.getReadOnlyProperty();
}
Vector3dfx.java 文件源码
项目:afc
阅读 39
收藏 0
点赞 0
评论 0
/** Replies the property that represents the length of the vector.
*
* @return the length property
*/
public ReadOnlyDoubleProperty lengthSquaredProperty() {
if (this.lengthSquareProperty == null) {
this.lengthSquareProperty = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.LENGTH_SQUARED);
this.lengthSquareProperty.bind(Bindings.createDoubleBinding(() ->
Vector3dfx.this.x.doubleValue() * Vector3dfx.this.x.doubleValue()
+ Vector3dfx.this.y.doubleValue() * Vector3dfx.this.y.doubleValue()
+ Vector3dfx.this.z.doubleValue() * Vector3dfx.this.z.doubleValue(), this.x, this.y, this.z));
}
return this.lengthSquareProperty.getReadOnlyProperty();
}
UnitVectorProperty3dfx.java 文件源码
项目:afc
阅读 39
收藏 0
点赞 0
评论 0
private void init() {
final Vector3dfx v = getGeomFactory().newVector();
this.x = new ReadOnlyDoubleWrapper(v, MathFXAttributeNames.X);
this.y = new ReadOnlyDoubleWrapper(v, MathFXAttributeNames.Y);
this.z = new ReadOnlyDoubleWrapper(v, MathFXAttributeNames.Z);
v.set(this.x, this.y, this.z);
super.set(v);
}
Path3dfx.java 文件源码
项目:afc
阅读 37
收藏 0
点赞 0
评论 0
/** Replies the path length property.
*
* @return the length property.
*/
public DoubleProperty lengthProperty() {
if (this.length == null) {
this.length = new ReadOnlyDoubleWrapper();
this.length.bind(Bindings.createDoubleBinding(() ->
Path3afp.computeLength(getPathIterator()),
innerTypesProperty(), innerCoordinatesProperty()));
}
return this.length;
}
RectangularPrism3dfx.java 文件源码
项目:afc
阅读 43
收藏 0
点赞 0
评论 0
/** Replies the property that is the width of the box.
*
* @return the width property.
*/
@Pure
public DoubleProperty widthProperty() {
if (this.width == null) {
this.width = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.WIDTH);
this.width.bind(Bindings.subtract(maxXProperty(), minXProperty()));
}
return this.width;
}
RectangularPrism3dfx.java 文件源码
项目:afc
阅读 36
收藏 0
点赞 0
评论 0
/** Replies the property that is the height of the box.
*
* @return the height property.
*/
@Pure
public DoubleProperty heightProperty() {
if (this.height == null) {
this.height = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.HEIGHT);
this.height.bind(Bindings.subtract(maxYProperty(), minYProperty()));
}
return this.height;
}
RectangularPrism3dfx.java 文件源码
项目:afc
阅读 31
收藏 0
点赞 0
评论 0
/** Replies the property that is the depth of the box.
*
* @return the depth property.
*/
@Pure
public DoubleProperty depthProperty() {
if (this.depth == null) {
this.depth = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.DEPTH);
this.depth.bind(Bindings.subtract(maxZProperty(), minZProperty()));
}
return this.depth;
}
UnitVectorProperty.java 文件源码
项目:afc
阅读 43
收藏 0
点赞 0
评论 0
private ReadOnlyDoubleWrapper internalXProperty() {
if (this.x == null) {
init();
}
return this.x;
}
UnitVectorProperty.java 文件源码
项目:afc
阅读 44
收藏 0
点赞 0
评论 0
private ReadOnlyDoubleWrapper internalYProperty() {
if (this.y == null) {
init();
}
return this.y;
}
UnitVectorProperty3dfx.java 文件源码
项目:afc
阅读 46
收藏 0
点赞 0
评论 0
private ReadOnlyDoubleWrapper internalXProperty() {
if (this.x == null) {
init();
}
return this.x;
}
UnitVectorProperty3dfx.java 文件源码
项目:afc
阅读 31
收藏 0
点赞 0
评论 0
private ReadOnlyDoubleWrapper internalYProperty() {
if (this.y == null) {
init();
}
return this.y;
}
UnitVectorProperty3dfx.java 文件源码
项目:afc
阅读 31
收藏 0
点赞 0
评论 0
private ReadOnlyDoubleWrapper internalZProperty() {
if (this.z == null) {
init();
}
return this.z;
}