com.ardor3d.math.Transform.set()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(161)

本文整理了Java中com.ardor3d.math.Transform.set()方法的一些代码示例,展示了Transform.set()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transform.set()方法的具体详情如下:
包路径:com.ardor3d.math.Transform
类名称:Transform
方法名:set

Transform.set介绍

[英]Copies the given transform values into this transform object.
[中]将给定的变换值复制到此变换对象中。

代码示例

代码示例来源:origin: com.ardor3d/ardor3d-core

/**
 * Sets the world transform.
 * 
 * @param transform
 *            the new world transform
 */
public void setWorldTransform(final ReadOnlyTransform transform) {
  _worldTransform.set(transform);
}

代码示例来源:origin: Renanse/Ardor3D

/**
 * Sets the world transform.
 *
 * @param transform
 *            the new world transform
 */
public void setWorldTransform(final ReadOnlyTransform transform) {
  _worldTransform.set(transform);
}

代码示例来源:origin: Renanse/Ardor3D

public void setEmitterTransform(final ReadOnlyTransform emitterTransform) {
  _emitterTransform.set(emitterTransform);
}

代码示例来源:origin: Renanse/Ardor3D

/** copy constructor */
public SpatialState(final SpatialState toCopy) {
  _transform.set(toCopy._transform);
}

代码示例来源:origin: com.ardor3d/ardor3d-effects

public void setEmitterTransform(final ReadOnlyTransform emitterTransform) {
  _emitterTransform.set(emitterTransform);
}

代码示例来源:origin: com.ardor3d/ardor3d-ui

public void setTransform(final ReadOnlyTransform transform) {
  _transform.set(transform);
}

代码示例来源:origin: com.ardor3d/ardor3d-animation

public void setInverseBindPose(final ReadOnlyTransform inverseBindPose) {
  _inverseBindPose.set(inverseBindPose);
}

代码示例来源:origin: com.ardor3d/ardor3d-animation

public void setOffset(final ReadOnlyTransform offset) {
  _offset.set(offset);
}

代码示例来源:origin: Renanse/Ardor3D

public void setOffset(final ReadOnlyTransform offset) {
  _offset.set(offset);
}

代码示例来源:origin: Renanse/Ardor3D

public void setInverseBindPose(final ReadOnlyTransform inverseBindPose) {
  _inverseBindPose.set(inverseBindPose);
}

代码示例来源:origin: com.ardor3d/ardor3d-terrain

public AbstractAwtElement(final ReadOnlyTransform transform, final Composite compositeOverride) {
  _transform.set(transform);
  _compositeOverride = compositeOverride;
  hints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
  hints.put(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
  hints.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
}

代码示例来源:origin: Renanse/Ardor3D

public AbstractAwtElement(final ReadOnlyTransform transform, final Composite compositeOverride) {
  _transform.set(transform);
  _compositeOverride = compositeOverride;
  hints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
  hints.put(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
  hints.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
}

代码示例来源:origin: Renanse/Ardor3D

/**
 * Sets the local transform.
 *
 * @param transform
 *            the new transform
 */
public void setTransform(final ReadOnlyTransform transform) {
  _localTransform.set(transform);
  markDirty(DirtyType.Transform);
}

代码示例来源:origin: com.ardor3d/ardor3d-core

/**
 * Sets the local transform.
 * 
 * @param transform
 *            the new transform
 */
public void setTransform(final ReadOnlyTransform transform) {
  _localTransform.set(transform);
  markDirty(DirtyType.Transform);
}

代码示例来源:origin: com.ardor3d/ardor3d-math

@Override
public Transform set(final ReadOnlyTransform source) {
  super.set(source);
  validate();
  return this;
}

代码示例来源:origin: Renanse/Ardor3D

@Override
public Transform set(final ReadOnlyTransform source) {
  super.set(source);
  validate();
  return this;
}

代码示例来源:origin: com.ardor3d/ardor3d-terrain

public void setTransform(final ReadOnlyTransform transform) {
  _transform.set(transform);
  updateBounds();
}

代码示例来源:origin: Renanse/Ardor3D

public void setTransform(final ReadOnlyTransform transform) {
  _transform.set(transform);
  updateBounds();
}

代码示例来源:origin: Renanse/Ardor3D

public void startDrag(final int mouseX, final int mouseY) {
  final Vector3 vec = Vector3.fetchTempInstance();
  vec.set(mouseX, mouseY, 0);
  _uiFrameStatusBar.getWorldTransform().applyInverseVector(vec);
  _initialX = Math.round(vec.getXf());
  _initialY = Math.round(vec.getYf());
  Vector3.releaseTempInstance(vec);
  final UIFrame frame = UIFrame.findParentFrame(_uiFrameStatusBar);
  _initialLocalComponentWidth = frame.getLocalComponentWidth();
  _initialLocalComponentHeight = frame.getLocalComponentHeight();
  _initFrameTransform.set(frame.getWorldTransform());
}

代码示例来源:origin: com.ardor3d/ardor3d-ui

public void startDrag(final int mouseX, final int mouseY) {
  final Vector3 vec = Vector3.fetchTempInstance();
  vec.set(mouseX, mouseY, 0);
  _uiFrameStatusBar.getWorldTransform().applyInverseVector(vec);
  _initialX = Math.round(vec.getXf());
  _initialY = Math.round(vec.getYf());
  Vector3.releaseTempInstance(vec);
  final UIFrame frame = UIFrame.findParentFrame(_uiFrameStatusBar);
  _initialLocalComponentWidth = frame.getLocalComponentWidth();
  _initialLocalComponentHeight = frame.getLocalComponentHeight();
  _initFrameTransform.set(frame.getWorldTransform());
}

相关文章