|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Vec2 | |
---|---|
artofillusion | |
artofillusion.image | |
artofillusion.math | |
artofillusion.texture | |
artofillusion.view |
Uses of Vec2 in artofillusion |
---|
Methods in artofillusion with parameters of type Vec2 | |
---|---|
Vec3 |
Camera.convertScreenToWorld(Vec2 p,
double depth,
boolean snapToGrid)
Given a point in screen coordinates, find the corresponding point in world coordinates which is at a specified depth from the viewpoint. |
void |
ViewerCanvas.renderLine(Vec2 p1,
double zf1,
Vec2 p2,
double zf2,
Camera cam,
java.awt.Color color)
Render a line into the image. |
Uses of Vec2 in artofillusion.image |
---|
Methods in artofillusion.image with parameters of type Vec2 | |
---|---|
void |
ImageOrValue.getGradient(Vec2 grad,
boolean wrapx,
boolean wrapy,
double x,
double y,
double xsize,
double ysize)
Given a texture coordinate, get the gradient of the image. |
void |
SVGImage.getGradient(Vec2 grad,
int component,
boolean wrapx,
boolean wrapy,
double x,
double y,
double xsize,
double ysize)
Get the gradient of a single component at a particular location in the image. |
void |
MIPMappedImage.getGradient(Vec2 grad,
int component,
boolean wrapx,
boolean wrapy,
double x,
double y,
double xsize,
double ysize)
Get the gradient of a single component at a particular location in the image. |
abstract void |
ImageMap.getGradient(Vec2 grad,
int component,
boolean wrapx,
boolean wrapy,
double x,
double y,
double xsize,
double ysize)
Get the gradient of a single component at a particular location in the image. |
void |
HDRImage.getGradient(Vec2 grad,
int component,
boolean wrapx,
boolean wrapy,
double x,
double y,
double xsize,
double ysize)
Get the gradient of a single component at a particular location in the image. |
Uses of Vec2 in artofillusion.math |
---|
Methods in artofillusion.math that return Vec2 | |
---|---|
Vec2 |
Vec3.dropAxis(int which)
Create a 2 component vector by removing one axis of this one. |
Vec2 |
Vec2.minus(Vec2 v)
Calculate the difference between this vector and another one. |
Vec2 |
Vec2.plus(Vec2 v)
Calculate the sum of this vector and another one. |
Vec2 |
Vec2.times(double d)
Create a new Vec2 by multiplying each component of this one by a constant. |
Vec2 |
Mat4.timesXY(Vec3 v)
This method works exactly like the times() method, except that it only calculates the x and y components of the output vector. |
Vec2 |
Mat4.timesXY(Vec3 v,
Vec2 result)
This method works exactly like the times() method, except that it only calculates the x and y components of the output vector. |
static Vec2 |
Vec2.vx()
Create a unit vector which points in the X direction. |
static Vec2 |
Vec2.vy()
Create a unit vector which points in the Y direction. |
Methods in artofillusion.math with parameters of type Vec2 | |
---|---|
void |
Vec2.add(Vec2 v)
Add another Vec2 to this one. |
double |
Vec2.cross(Vec2 v)
Calculate the cross product of this vector with another one. |
double |
Vec2.distance(Vec2 v)
Calculate the Euclidean distance between this vector and another one. |
double |
Vec2.distance2(Vec2 v)
Calculate the square of the Euclidean distance between this vector and another one. |
double |
Vec2.dot(Vec2 v)
Calculate the dot product of this vector with another one. |
Vec2 |
Vec2.minus(Vec2 v)
Calculate the difference between this vector and another one. |
static void |
SimplexNoise.noiseGradient(Vec2 gradient,
double xin,
double yin)
Calculate the gradient of the noise function at a point in 2D space. |
Vec2 |
Vec2.plus(Vec2 v)
Calculate the sum of this vector and another one. |
void |
Vec2.subtract(Vec2 v)
Subtract another Vec2 from this one. |
Vec2 |
Mat4.timesXY(Vec3 v,
Vec2 result)
This method works exactly like the times() method, except that it only calculates the x and y components of the output vector. |
Constructors in artofillusion.math with parameters of type Vec2 | |
---|---|
Vec2(Vec2 v)
Create a new Vec2 identical to another one. |
Uses of Vec2 in artofillusion.texture |
---|
Methods in artofillusion.texture that return Vec2 | |
---|---|
Vec2[][] |
UVMapping.findFaceTextureCoordinates(FacetedMesh mesh)
Given a FacetedMesh to which this mapping has been applied, return the texture coordinates at each vertex of each face. |
Vec2[] |
UVMapping.findTextureCoordinates(Mesh mesh)
Given a Mesh to which this mapping has been applied, return the texture coordinates at each vertex. |
Vec2[] |
SphericalMapping.findTextureCoordinates(Mesh mesh)
Given a Mesh to which this mapping has been applied, return the texture coordinates at each vertex. |
Vec2[] |
ProjectionMapping.findTextureCoordinates(Mesh mesh)
Given a Mesh to which this mapping has been applied, return the texture coordinates at each vertex. |
abstract Vec2[] |
Mapping2D.findTextureCoordinates(Mesh mesh)
Given a Mesh to which this mapping has been applied, return the texture coordinates at each vertex. |
Vec2[] |
CylindricalMapping.findTextureCoordinates(Mesh mesh)
Given a Mesh to which this mapping has been applied, return the texture coordinates at each vertex. |
Vec2 |
ProjectionMapping.getCenter()
Get a vector whose components contain the center position for the mapping. |
Vec2 |
SphericalMapping.getScale()
Get a vector whose components contain the scale factors for the mapping. |
Vec2 |
ProjectionMapping.getScale()
Get a vector whose components contain the scale factors for the mapping. |
Vec2 |
CylindricalMapping.getScale()
Get a vector whose components contain the scale factors for the mapping. |
Methods in artofillusion.texture with parameters of type Vec2 | |
---|---|
void |
ProjectionMapping.setCenter(Vec2 center)
Set the center position for the mapping. |
void |
UVMappingViewer.setDisplayedVertices(Vec2[] coord,
boolean[] display)
Rebuild the list of vertices to display. |
void |
UVMapping.setFaceTextureCoordinates(Object3D obj,
Vec2[][] uv)
Given a triangle mesh to which this mapping has been applied and the desired texture coordinates at each vertex, set the texture parameters accordingly. |
void |
UVMapping.setFaceTextureCoordinates(Object3D obj,
Vec2[][] uv,
TextureParameter uParameter,
TextureParameter vParameter)
Given a triangle mesh to which this mapping has been applied and the desired texture coordinates at each vertex, set the texture parameters accordingly. |
void |
SphericalMapping.setScale(Vec2 scale)
Set the scale factors for the mapping. |
void |
ProjectionMapping.setScale(Vec2 scale)
Set the scale factors for the mapping. |
void |
CylindricalMapping.setScale(Vec2 scale)
Set the scale factors for the mapping. |
void |
UVMapping.setTextureCoordinates(Object3D obj,
Vec2[] uv)
Given an object to which this mapping has been applied and the desired texture coordinates at each vertex, set the texture parameters accordingly. |
void |
UVMapping.setTextureCoordinates(Object3D obj,
Vec2[] uv,
TextureParameter uParameter,
TextureParameter vParameter)
Given an object to which this mapping has been applied and the desired texture coordinates at each vertex, set the texture parameters accordingly. |
void |
UVMappingWindow.setTextureCoords(Vec2[] coords)
Update the texture coordinates of the mesh. |
void |
UVMappingViewer.updateVertexPositions(Vec2[] coord)
Update the positions of the displayed vertices. |
Uses of Vec2 in artofillusion.view |
---|
Methods in artofillusion.view with parameters of type Vec2 | |
---|---|
void |
SoftwareCanvasDrawer.renderLine(Vec2 p1,
double zf1,
Vec2 p2,
double zf2,
Camera cam,
java.awt.Color color)
Render a line into the image. |
void |
GLCanvasDrawer.renderLine(Vec2 p1,
double zf1,
Vec2 p2,
double zf2,
Camera cam,
java.awt.Color color)
Render a line into the image. |
void |
CanvasDrawer.renderLine(Vec2 p1,
double zf1,
Vec2 p2,
double zf2,
Camera cam,
java.awt.Color color)
Render a line into the image. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |